Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

powerpc/crashdump: Do not fail on NULL pointer dereferencing

parent ce47c1c4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);