diff options
-rw-r--r-- | sys/kern/vfs_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0c3d003..7441e19 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -440,7 +440,8 @@ vop_lock_post(void *ap, int rc) a = ap; ASSERT_VI_UNLOCKED(a->a_vp, "VOP_LOCK"); - ASSERT_VOP_LOCKED(a->a_vp, "VOP_LOCK"); + if (rc == 0) + ASSERT_VOP_LOCKED(a->a_vp, "VOP_LOCK"); } void |