diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 5e00b53eee92..3b8227fc03bc 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1730,6 +1730,7 @@ fdcheckstd(td) fp->f_type = DTYPE_VNODE; VOP_UNLOCK(nd.ni_vp, 0, td); devnull = fd; + fdrop(fp, td); } else { error = do_dup(td, DUP_FIXED, devnull, i, &retval); if (error != 0)