mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 06:14:27 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193931
|
@ -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…
Reference in a new issue