Do not leak the state->ls_lock after VI_DOOMED check introduced

in the r192683.

Reported by:	pho
Submitted by:	jhb
This commit is contained in:
Konstantin Belousov 2009-06-10 16:17:38 +00:00
parent 93bc76dc3e
commit 5dd6aaba88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193931

View File

@ -647,6 +647,7 @@ lf_advlockasync(struct vop_advlockasync_args *ap, struct lockf **statep,
VI_LOCK(vp);
if (vp->v_iflag & VI_DOOMED) {
VI_UNLOCK(vp);
sx_xunlock(&state->ls_lock);
lf_free_lock(lock);
return (ENOENT);
}