]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86: return correct error code from child_rip in x86_64 entry.S
authorAndrey Mirkin <major@openvz.org>
Wed, 17 Oct 2007 16:04:33 +0000 (18:04 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Nov 2007 17:42:31 +0000 (09:42 -0800)
commit26b880d662d639f0ed0dc5a7b71c1e3557abe003
tree904da2c760ecd9516d4b836eaac6e05722b27ce5
parent5b7e28db04cb42b8f8b81c6ae61a7d77bddc373a
x86: return correct error code from child_rip in x86_64 entry.S

patch 1c5b5cfd290b6cb7c67020ef420e275f746a7236 in mainline.

x86: return correct error code from child_rip in x86_64 entry.S

Right now register edi is just cleared before calling do_exit.
That is wrong because correct return value will be ignored.
Value from rax should be copied to rdi instead of clearing edi.

AK: changed to 32bit move because it's strictly an int

[ tglx: arch/x86 adaptation ]

Signed-off-by: Andrey Mirkin <major@openvz.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/entry.S