x86: Fix movq immediate operand constraints in uaccess_64.h
authorUros Bizjak <ubizjak@gmail.com>
Sun, 19 Jul 2009 16:06:35 +0000 (18:06 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jul 2009 03:46:17 +0000 (20:46 -0700)
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 <ubizjak@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: stable@kernel.org

No differences found