From: Maxim Uvarov Date: Tue, 11 May 2010 05:41:08 +0000 (+0000) Subject: powerpc/crashdump: Do not fail on NULL pointer dereferencing X-Git-Tag: MMI-PSA29.97-13-9~23850^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=426b6cb478e60352a463a0d1ec75c1c9fab30b13;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git powerpc/crashdump: Do not fail on NULL pointer dereferencing Signed-off-by: Maxim Uvarov Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 6f4613dd05ef..341d8af6f33e 100644 --- a/arch/powerpc/kernel/crash.c +++ b/arch/powerpc/kernel/crash.c @@ -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);