Date: Wed, 2 Mar 2011 06:21:21 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219169 - stable/8/sys/compat/linux Message-ID: <201103020621.p226LLar083218@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103020621.p226LLar083218>