diff options
| -rw-r--r-- | sys/kern/vfs_extattr.c | 2 | ||||
| -rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index b78d545c11fc..0c89a944ae87 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -652,9 +652,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, if (error) return (error); fp = nfp; - FILEDESC_LOCK(fdp); cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT; - FILEDESC_UNLOCK(fdp); NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td); td->td_dupfd = -indx - 1; /* XXX check for fdopen */ /* diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index b78d545c11fc..0c89a944ae87 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -652,9 +652,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, if (error) return (error); fp = nfp; - FILEDESC_LOCK(fdp); cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT; - FILEDESC_UNLOCK(fdp); NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td); td->td_dupfd = -indx - 1; /* XXX check for fdopen */ /* |
