]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Fix mask used to select futex spinlock
authorJohn David Anglin <dave.anglin@bell.net>
Tue, 21 Dec 2021 18:33:16 +0000 (13:33 -0500)
committerHelge Deller <deller@gmx.de>
Tue, 21 Dec 2021 20:15:59 +0000 (21:15 +0100)
commit76a7f5198d8aca7d83e614516eb59f87ef991cce
treecd9b3ec6f063d9f70d5b2194de11f1e220644fea
parentf2de7e9ae139f13173c5d9894a10473fe9700e0e
parisc: Fix mask used to select futex spinlock

The address bits used to select the futex spinlock need to match those used in
the LWS code in syscall.S. The mask 0x3f8 only selects 7 bits.  It should
select 8 bits.

This change fixes the glibc nptl/tst-cond24 and nptl/tst-cond25 tests.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Fixes: f4d3d83e4f55 ("parisc: Switch to more fine grained lws locks")
Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/futex.h