mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
powerpc/crashdump: Do not fail on NULL pointer dereferencing
commit 426b6cb478 upstream.
Signed-off-by: Maxim Uvarov <muvarov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Kamalesh babulal <kamalesh@linux.vnet.ibm.com>
cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
553c9ca597
commit
692d5ec1c7
@@ -377,6 +377,9 @@ void default_machine_crash_shutdown(struct pt_regs *regs)
|
||||
for_each_irq(i) {
|
||||
struct irq_desc *desc = irq_desc + i;
|
||||
|
||||
if (!desc || !desc->chip || !desc->chip->eoi)
|
||||
continue;
|
||||
|
||||
if (desc->status & IRQ_INPROGRESS)
|
||||
desc->chip->eoi(i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user