From: Steven J. Magnani Date: Thu, 6 May 2010 21:38:33 +0000 (-0500) Subject: microblaze: fix get_user/put_user side-effects X-Git-Tag: v2.6.34~17^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=538722ca3b762023ac65cec214901a1ebff8b575;p=pandora-kernel.git microblaze: fix get_user/put_user side-effects The Microblaze implementations of get_user() and (MMU) put_user() evaluate the address argument more than once. This causes unexpected side-effects for invocations that include increment operators, i.e. get_user(foo, bar++). This patch also removes the distinction between MMU and noMMU put_user(). Without the patch: $ echo 1234567890 > /proc/sys/kernel/core_pattern $ cat /proc/sys/kernel/core_pattern 12345 Signed-off-by: Steven J. Magnani --- Reading git-diff-tree failed