diff options
author | alfred <alfred@FreeBSD.org> | 2002-04-22 20:09:11 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-04-22 20:09:11 +0000 |
commit | d4c507ea29a089a017b39ff7d76624177ec4bb5b (patch) | |
tree | 7440a61e02d26ef9735ac1018e63b83ea70123b3 /sys/kern | |
parent | ab6dc20b52edca045ecdb2873a6591db2821db79 (diff) | |
download | FreeBSD-src-d4c507ea29a089a017b39ff7d76624177ec4bb5b.zip FreeBSD-src-d4c507ea29a089a017b39ff7d76624177ec4bb5b.tar.gz |
Don't FILEDESC_LOCK around calls to falloc().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 06743d1..65f85d5 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1528,9 +1528,7 @@ fdcheckstd(td) if (fdp->fd_ofiles[i] != NULL) continue; if (devnull < 0) { - FILEDESC_LOCK(fdp); error = falloc(td, &fp, &fd); - FILEDESC_UNLOCK(fdp); if (error != 0) break; NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, "/dev/null", |