Commit 426b6cb4 authored by Maxim Uvarov's avatar Maxim Uvarov Committed by Benjamin Herrenschmidt

powerpc/crashdump: Do not fail on NULL pointer dereferencing

Signed-off-by: default avatarMaxim Uvarov <muvarov@gmail.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent ce47c1c4
......@@ -375,6 +375,9 @@ void default_machine_crash_shutdown(struct pt_regs *regs)
for_each_irq(i) {
struct irq_desc *desc = irq_to_desc(i);
if (!desc || !desc->chip || !desc->chip->eoi)
continue;
if (desc->status & IRQ_INPROGRESS)
desc->chip->eoi(i);
......
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