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:
Mark Johnston
2020-08-17 21:30:15 +00:00
parent 976485968e
commit 74a796e0fc
+1
View File
@@ -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);
}