Commit:     404aae5d420ec543e2e8434f7ec0edf5e2d2b0c4
Parent:     4e886c29610f4374d8971ec7a248f011cc3bd73a
Author:     Greg Kroah-Hartman <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 27 10:29:20 2008 -0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Sun Jan 27 15:01:39 2008 -0800

    x86: fix runtime error in arch/x86/kernel/cpu/mcheck/mce_amd_64.c
    This problem is due to the kobject rework recently done in this file.
    The mce_amd_64.c code uses some wierd forward calls to back out of the
    recursive way the code creates kobjects.  Because of this, we need to
    verify that we have really created a kobject before calling
    Many thanks to Yinghai Lu <[EMAIL PROTECTED]> for reporting the
    problem and testing.
    Cc: Yinghai Lu <[EMAIL PROTECTED]>
    Cc: Jacob Shin <[EMAIL PROTECTED]>
    Cc: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 arch/x86/kernel/cpu/mcheck/mce_amd_64.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c 
index 7535887..073afa7 100644
--- a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c
@@ -450,7 +450,8 @@ recurse:
        if (err)
                goto out_free;
-       kobject_uevent(&b->kobj, KOBJ_ADD);
+       if (b)
+               kobject_uevent(&b->kobj, KOBJ_ADD);
        return err;
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