diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-02-13 17:56:22 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-02-13 17:56:22 +0000 |
commit | 5cfdaf1c594c843a616f44856191ab603aca7afb (patch) | |
tree | 6df6da80ba04b68e943fa33e128e43521e8b806a | |
parent | 3835cbd87137939edd753a1ca3b8177354f8b61b (diff) | |
download | FreeBSD-src-5cfdaf1c594c843a616f44856191ab603aca7afb.zip FreeBSD-src-5cfdaf1c594c843a616f44856191ab603aca7afb.tar.gz |
The bitset field of freshly created futex should be initialized explicity.
Otherwise, REQUEUE operations fails.
-rw-r--r-- | sys/compat/linux/linux_futex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index f2955b0..b663d53 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -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); |