svn commit: r219169 - stable/8/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Wed Mar 2 06:21:21 UTC 2011
Author: dchagin
Date: Wed Mar 2 06:21:21 2011
New Revision: 219169
URL: http://svn.freebsd.org/changeset/base/219169
Log:
MFC r218646:
The bitset field of freshly created futex should be initialized
explicity. Otherwise, REQUEUE operations fails.
Modified:
stable/8/sys/compat/linux/linux_futex.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/compat/linux/linux_futex.c
==============================================================================
--- stable/8/sys/compat/linux/linux_futex.c Wed Mar 2 06:19:31 2011 (r219168)
+++ stable/8/sys/compat/linux/linux_futex.c Wed Mar 2 06:21:21 2011 (r219169)
@@ -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-stable-8
mailing list