Commit 523e7f28 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: fix oops with multiple MCEs

Fix oops when multiple MCE entries are logged.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c9c95862
...@@ -101,7 +101,7 @@ static void mce_panic(char *msg, struct mce *backup, unsigned long start) ...@@ -101,7 +101,7 @@ static void mce_panic(char *msg, struct mce *backup, unsigned long start)
if (time_before(tsc, start)) if (time_before(tsc, start))
continue; continue;
print_mce(&mcelog.entry[i]); print_mce(&mcelog.entry[i]);
if (mcelog.entry[i].tsc == backup->tsc) if (backup && mcelog.entry[i].tsc == backup->tsc)
backup = NULL; backup = NULL;
} }
if (backup) if (backup)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment