svn commit: r364679 - stable/12/sys/compat/linux

Mark Johnston markj at FreeBSD.org
Mon Aug 24 13:54:59 UTC 2020


Author: markj
Date: Mon Aug 24 13:54:58 2020
New Revision: 364679
URL: https://svnweb.freebsd.org/changeset/base/364679

Log:
  MFC r364328:
  Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET).

Modified:
  stable/12/sys/compat/linux/linux_futex.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linux/linux_futex.c
==============================================================================
--- stable/12/sys/compat/linux/linux_futex.c	Mon Aug 24 13:54:41 2020	(r364678)
+++ stable/12/sys/compat/linux/linux_futex.c	Mon Aug 24 13:54:58 2020	(r364679)
@@ -643,6 +643,7 @@ futex_wait(struct futex *f, struct waiting_proc *wp, s
 
 	if (bitset == 0) {
 		LIN_SDT_PROBE1(futex, futex_wait, return, EINVAL);
+		futex_put(f, wp);
 		return (EINVAL);
 	}
 


More information about the svn-src-stable-12 mailing list