summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-06-04 00:54:27 +0000
committerrwatson <rwatson@FreeBSD.org>2003-06-04 00:54:27 +0000
commit16f34ab41364565ebcc08fe935fb3ed7646887aa (patch)
tree0ca4fe9ceb67c82f555ad41d85f0eec3a6da191e /sys
parente31c5c959f1bd9029fa029b8a875e4d2a4ecb122 (diff)
downloadFreeBSD-src-16f34ab41364565ebcc08fe935fb3ed7646887aa.zip
FreeBSD-src-16f34ab41364565ebcc08fe935fb3ed7646887aa.tar.gz
Assert the vnode lock when returning successfully from vn_open_cred().
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_vnops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 589a372..8048ecb 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -265,6 +265,7 @@ restart:
if (fmode & FWRITE)
vp->v_writecount++;
*flagp = fmode;
+ ASSERT_VOP_LOCKED(vp, "vn_open_cred");
return (0);
bad:
NDFREE(ndp, NDF_ONLY_PNBUF);
OpenPOWER on IntegriCloud