aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
committerJohn Dyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
commit996c772f581f5624846dcd8470ca6860c1678b7c (patch)
tree88a944de263165091f0a18abeedbaaccec532407 /sys/dev/vn
parentd243e2f7f456304830e7f832629bc24c504c2385 (diff)
Notes
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index cbff83c47a268..f03b7c14ea1ca 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -457,11 +457,11 @@ vnioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
return(error);
error = VOP_GETATTR(nd.ni_vp, &vattr, p->p_ucred, p);
if (error) {
- VOP_UNLOCK(nd.ni_vp);
+ VOP_UNLOCK(nd.ni_vp, 0, p);
(void) vn_close(nd.ni_vp, FREAD|FWRITE, p->p_ucred, p);
return(error);
}
- VOP_UNLOCK(nd.ni_vp);
+ VOP_UNLOCK(nd.ni_vp, 0, p);
vn->sc_vp = nd.ni_vp;
vn->sc_size = btodb(vattr.va_size); /* note truncation */
error = vnsetcred(vn, p->p_ucred);