From: Andrey Ryabinin Date: Wed, 7 May 2014 07:07:25 +0000 (+0100) Subject: ARM: 8051/1: put_user: fix possible data corruption in put_user X-Git-Tag: v3.2.61~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f85743e62e15955caa5da907f5a2b02b351722d3;p=pandora-kernel.git ARM: 8051/1: put_user: fix possible data corruption in put_user commit 537094b64b229bf3ad146042f83e74cf6abe59df upstream. 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 Reviewed-by: Nicolas Pitre Signed-off-by: Russell King Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed