Skip to content

Commit

Permalink
powerpc/crashdump: Do not fail on NULL pointer dereferencing
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Uvarov <muvarov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Maxim Uvarov authored and Benjamin Herrenschmidt committed May 21, 2010
1 parent ce47c1c commit 426b6cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 426b6cb

Please sign in to comment.