From: Uros Bizjak Date: Sun, 19 Jul 2009 16:06:35 +0000 (+0200) Subject: x86: Fix movq immediate operand constraints in uaccess_64.h X-Git-Tag: v2.6.31-rc5~87^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155b73529583c38f30fd394d692b15a893960782;p=pandora-kernel.git x86: Fix movq immediate operand constraints in uaccess_64.h arch/x86/include/asm/uaccess_64.h uses wrong asm operand constraint ("ir") for movq insn. Since movq sign-extends its immediate operand, "er" constraint should be used instead. Attached patch changes all uses of __put_user_asm in uaccess_64.h to use "er" when "q" insn suffix is involved. Patch was compile tested on x86_64 with defconfig. Signed-off-by: Uros Bizjak Signed-off-by: H. Peter Anvin Cc: stable@kernel.org --- Reading git-diff-tree failed