Don't FILEDESC_LOCK around calls to falloc().
This commit is contained in:
parent
ab6dc20b52
commit
d4c507ea29
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user