Assert the vnode lock when returning successfully from vn_open_cred().

This commit is contained in:
Robert Watson 2003-06-04 00:54:27 +00:00
parent 2b035cbe5a
commit 0b95513444

View file

@ -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);