aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMaxim Uvarov <muvarov@gmail.com>2010-05-11 05:41:08 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 14:29:57 -0700
commit692d5ec1c7bf51e51bf87d0118c9dfd91b77f133 (patch)
treeaa0b43445f67b72a31ea77fba2c3041cfb738f45 /arch
parent553c9ca59794cff92d010fadc1aed89f47b47a20 (diff)
powerpc/crashdump: Do not fail on NULL pointer dereferencing
commit 426b6cb478e60352a463a0d1ec75c1c9fab30b13 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/crash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
index f4a0188c4d3..b7798180178 100644
--- a/arch/powerpc/kernel/crash.c
+++ b/arch/powerpc/kernel/crash.c
@@ -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);