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: omap-for-v3.16/fixes-against-rc1~125^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=537094b64b229bf3ad146042f83e74cf6abe59df;p=pandora-kernel.git 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 Reviewed-by: Nicolas Pitre Cc: stable@vger.kernel.org Signed-off-by: Russell King --- Reading git-diff-tree failed