diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 2e162cd..5e5bee0 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -986,7 +986,9 @@ fpathconf(td, uap) case DTYPE_VNODE: vp = fp->f_data; mtx_lock(&Giant); + vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); error = VOP_PATHCONF(vp, uap->name, td->td_retval); + VOP_UNLOCK(vp, 0, td); mtx_unlock(&Giant); break; default: |