Andrey Ryabinin 537094b64b 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>
2014-05-25 23:44:25 +01:00
..
2014-04-12 17:26:45 -07:00
2014-05-01 10:09:47 -07:00
2014-05-20 10:59:38 +02:00
2014-05-20 10:59:37 +02:00
2014-05-15 00:30:32 +01:00
2014-05-21 17:54:55 +09:00
2014-05-20 10:59:37 +02:00
2014-05-05 15:36:59 -07:00