diff options
author | Maxim Uvarov <muvarov@gmail.com> | 2010-05-11 01:41:08 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-05-21 03:31:09 -0400 |
commit | 426b6cb478e60352a463a0d1ec75c1c9fab30b13 (patch) | |
tree | 994b3a2dfa42d8c1bc976ed984a56cc52f910414 /arch/powerpc/kernel/crash.c | |
parent | ce47c1c45b2b17ad07af82c775f27cc5196080f8 (diff) |
powerpc/crashdump: Do not fail on NULL pointer dereferencing
Signed-off-by: Maxim Uvarov <muvarov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/crash.c')
-rw-r--r-- | arch/powerpc/kernel/crash.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
375 | for_each_irq(i) { | 375 | for_each_irq(i) { |
376 | struct irq_desc *desc = irq_to_desc(i); | 376 | struct irq_desc *desc = irq_to_desc(i); |
377 | 377 | ||
378 | if (!desc || !desc->chip || !desc->chip->eoi) | ||
379 | continue; | ||
380 | |||
378 | if (desc->status & IRQ_INPROGRESS) | 381 | if (desc->status & IRQ_INPROGRESS) |
379 | desc->chip->eoi(i); | 382 | desc->chip->eoi(i); |
380 | 383 | ||