x86: Fix movq immediate operand constraints in uaccess_64.h
commit105010723459c496c1c0e1dc3a6fd8f2e6288703
authorUros Bizjak <ubizjak@gmail.com>
Sun, 19 Jul 2009 16:06:35 +0000 (19 18:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:40:01 +0000 (30 14:40 -0700)
treed25aab88df3bbbca23955beebd8a95c9be9e2714
parent7e09e4e01708df59db28d828a03ce940562381cd
x86: Fix movq immediate operand constraints in uaccess_64.h

commit 155b73529583c38f30fd394d692b15a893960782 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/uaccess_64.h