Skip to content

Commit

Permalink
powerpc: Set the correct kernel taint on machine check errors.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Axtens authored and Michael Ellerman committed Jul 6, 2015
1 parent 14f2118 commit 27ea2c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ long machine_check_early(struct pt_regs *regs)

__this_cpu_inc(irq_stat.mce_exceptions);

add_taint(TAINT_MACHINE_CHECK, LOCKDEP_NOW_UNRELIABLE);

if (cur_cpu_spec && cur_cpu_spec->machine_check_early)
handled = cur_cpu_spec->machine_check_early(regs);
return handled;
Expand Down

0 comments on commit 27ea2c4

Please sign in to comment.