Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET).
Reported by: syzkaller MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
@@ -643,6 +643,7 @@ futex_wait(struct futex *f, struct waiting_proc *wp, struct timespec *ts,
|
||||
|
||||
if (bitset == 0) {
|
||||
LIN_SDT_PROBE1(futex, futex_wait, return, EINVAL);
|
||||
futex_put(f, wp);
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user