mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
aa506dc7b1
commit
1c5b5cfd29
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ child_rip:
|
|||
movq %rsi, %rdi
|
||||
call *%rax
|
||||
# exit
|
||||
xorl %edi, %edi
|
||||
mov %eax, %edi
|
||||
call do_exit
|
||||
CFI_ENDPROC
|
||||
ENDPROC(child_rip)
|
||||
|
|
Loading…
Reference in a new issue