提交 3ba45b7e 编写于 作者: M Michael Ellerman

powerpc/watchdog: regs can't be null in soft_nmi_interrupt()

soft_nmi_interrupt() is called directly from the asm exception
handling code, which passes regs as a pointer to the stack. So regs
can't be NULL, it may be full of junk, but that's a separate problem.
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 d8fa82e0
......@@ -257,10 +257,7 @@ void soft_nmi_interrupt(struct pt_regs *regs)
pr_emerg("CPU %d self-detected hard LOCKUP\n", cpu);
print_modules();
print_irqtrace_events(current);
if (regs)
show_regs(regs);
else
dump_stack();
show_regs(regs);
wd_smp_unlock(&flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册