Skip to content

Commit 2d806d0

Browse files
schnhrrsuryasaimadhu
authored andcommitted
x86/mce: Pass MCE message to mce_panic() on failed kernel recovery
In commit b2f9d67 ("x86/mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries") another call to mce_panic() was introduced. Pass the message of the handled MCE to that instance of mce_panic() as well, as there doesn't seem to be a reason not to. Signed-off-by: Jan H. Schönherr <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Tony Luck <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: linux-edac <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent db1ae03 commit 2d806d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/mce/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ void do_machine_check(struct pt_regs *regs, long error_code)
13651365
ist_end_non_atomic();
13661366
} else {
13671367
if (!fixup_exception(regs, X86_TRAP_MC, error_code, 0))
1368-
mce_panic("Failed kernel mode recovery", &m, NULL);
1368+
mce_panic("Failed kernel mode recovery", &m, msg);
13691369
}
13701370

13711371
out_ist:

0 commit comments

Comments
 (0)