svn commit: r218646 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sun Feb 13 17:56:23 UTC 2011


Author: dchagin
Date: Sun Feb 13 17:56:22 2011
New Revision: 218646
URL: http://svn.freebsd.org/changeset/base/218646

Log:
  The bitset field of freshly created futex should be initialized explicity.
  Otherwise, REQUEUE operations fails.

Modified:
  head/sys/compat/linux/linux_futex.c

Modified: head/sys/compat/linux/linux_futex.c
==============================================================================
--- head/sys/compat/linux/linux_futex.c	Sun Feb 13 17:43:56 2011	(r218645)
+++ head/sys/compat/linux/linux_futex.c	Sun Feb 13 17:56:22 2011	(r218646)
@@ -194,6 +194,7 @@ retry:
 		tmpf = malloc(sizeof(*tmpf), M_FUTEX, M_WAITOK | M_ZERO);
 		tmpf->f_uaddr = uaddr;
 		tmpf->f_refcount = 1;
+		tmpf->f_bitset = FUTEX_BITSET_MATCH_ANY;
 		FUTEX_INIT(tmpf);
 		TAILQ_INIT(&tmpf->f_waiting_proc);
 


More information about the svn-src-all mailing list