diff options
author | Will Deacon <will.deacon@arm.com> | 2011-09-23 14:34:12 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-26 12:36:47 +0100 |
commit | df77abcafc8dc881b6c9347548651777088e4b27 (patch) | |
tree | 1311e860f1c86371852175c582d111ce565d411d /kernel/ptrace.c | |
parent | d8e89b47e00ee80e920761145144640aac4cf71a (diff) | |
download | linux-df77abcafc8dc881b6c9347548651777088e4b27.tar.bz2 |
ARM: 7099/1: futex: preserve oldval in SMP __futex_atomic_op
The SMP implementation of __futex_atomic_op clobbers oldval with the
status flag from the exclusive store. This causes it to always read as
zero when performing the FUTEX_OP_CMP_* operation.
This patch updates the ARM __futex_atomic_op implementations to take a
tmp argument, allowing us to store the strex status flag without
overwriting the register containing oldval.
Cc: stable@kernel.org
Reported-by: Minho Ban <mhban@samsung.com>
Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions