summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_descrip.c2
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",
OpenPOWER on IntegriCloud