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:
parent
93bc76dc3e
commit
5dd6aaba88
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user