Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 17:56:23 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218646 - head/sys/compat/linux
Message-ID:  <201102131756.p1DHuNWW046253@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102131756.p1DHuNWW046253>