diff options
-rw-r--r-- | sys/kern/vfs_extattr.c | 3 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index af10229..e994b37 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -571,8 +571,7 @@ update: if (mp->mnt_opt != NULL) vfs_freeopts(mp->mnt_opt); mp->mnt_opt = mp->mnt_optnew; - } else - vfs_freeopts(mp->mnt_optnew); + } /* * Prevent external consumers of mount * options to read mnt_optnew. diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index af10229..e994b37 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -571,8 +571,7 @@ update: if (mp->mnt_opt != NULL) vfs_freeopts(mp->mnt_opt); mp->mnt_opt = mp->mnt_optnew; - } else - vfs_freeopts(mp->mnt_optnew); + } /* * Prevent external consumers of mount * options to read mnt_optnew. |