summaryrefslogtreecommitdiff
path: root/arch/sh/Kconfig.cpu
diff options
context:
space:
mode:
authorAndrey Ryabinin <a.ryabinin@samsung.com>2014-05-07 11:07:25 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-26 02:44:25 +0400
commit537094b64b229bf3ad146042f83e74cf6abe59df (patch)
tree746795d32d38c8c0affefa22c6c1154d2ddd4e32 /arch/sh/Kconfig.cpu
parentf9ff907b0af561dcde4683f7c9f71dc0f41d3be3 (diff)
downloadlinux-537094b64b229bf3ad146042f83e74cf6abe59df.tar.xz
ARM: 8051/1: put_user: fix possible data corruption in put_user
According to arm procedure call standart r2 register is call-cloberred. So after the result of x expression was put into r2 any following function call in p may overwrite r2. To fix this, the result of p expression must be saved to the temporary variable before the assigment x expression to __r2. Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com> Reviewed-by: Nicolas Pitre <nico@linaro.org> Cc: stable@vger.kernel.org Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/sh/Kconfig.cpu')
0 files changed, 0 insertions, 0 deletions