summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-06-14 23:25:19 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-07-06 06:24:35 -0400
commit27ea2c420cad57386c25668cb9a9f0f082635586 (patch)
treec9c2e6f441abb0a2bfc875d34a574131b61b66cd /arch/powerpc
parent14f21189df33bc972455d6a0ed875aa68718d7fc (diff)
powerpc: Set the correct kernel taint on machine check errors.
This means the 'M' flag will work properly when the kernel prints a backtrace. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index 6530f1b8874d..37de90f8a845 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -297,6 +297,8 @@ long machine_check_early(struct pt_regs *regs)
297 297
298 __this_cpu_inc(irq_stat.mce_exceptions); 298 __this_cpu_inc(irq_stat.mce_exceptions);
299 299
300 add_taint(TAINT_MACHINE_CHECK, LOCKDEP_NOW_UNRELIABLE);
301
300 if (cur_cpu_spec && cur_cpu_spec->machine_check_early) 302 if (cur_cpu_spec && cur_cpu_spec->machine_check_early)
301 handled = cur_cpu_spec->machine_check_early(regs); 303 handled = cur_cpu_spec->machine_check_early(regs);
302 return handled; 304 return handled;