summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-dreamcast
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2017-05-02 15:00:12 +0200
committerRich Felker <dalias@libc.org>2018-04-13 01:47:50 +0200
commit9b7e30ab975334448dc4c82941a48a3685a7642b (patch)
tree9f200fb4ccd0436507a3abed99141828ff9f5c97 /arch/sh/include/mach-dreamcast
parentLinux 4.16 (diff)
downloadlinux-9b7e30ab975334448dc4c82941a48a3685a7642b.tar.xz
linux-9b7e30ab975334448dc4c82941a48a3685a7642b.zip
sh: fix futex FUTEX_OP_SET op on userspace addresses
Commit 00b73d8d1b71 ("sh: add working futex atomic ops on userspace addresses for smp") changed the futex_atomic_op_inuser function to use a loop. In case of the FUTEX_OP_SET op with a userspace address containing a value different of 0, this loop is an endless loop. Fix that by loading the value of oldval from the userspace before doing the cmpxchg op, also for the FUTEX_OP_SET case. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/include/mach-dreamcast')
0 files changed, 0 insertions, 0 deletions