Commit:     1c5b5cfd290b6cb7c67020ef420e275f746a7236
Parent:     aa506dc7b12d03fbf8fd11aab752aed1aadd9c07
Author:     Andrey Mirkin <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 18:04:33 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:15:29 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 arch/x86/kernel/entry_64.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index f1cacd4..3a058bb 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -988,7 +988,7 @@ child_rip:
        movq %rsi, %rdi
        call *%rax
        # exit
-       xorl %edi, %edi
+       mov %eax, %edi
        call do_exit
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to