[PATCH 077/173] powerpc/crashdump: Do not fail on NULL pointer dereferencing
From: Willy Tarreau
Date: Mon Apr 25 2011 - 16:38:48 EST
2.6.27.59-stable review patch. If anyone has any objections, please let us know.
------------------
From: Maxim Uvarov <muvarov@xxxxxxxxx>
commit 426b6cb478e60352a463a0d1ec75c1c9fab30b13 upstream.
Signed-off-by: Maxim Uvarov <muvarov@xxxxxxxxx>
Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Kamalesh babulal <kamalesh@xxxxxxxxxxxxxxxxxx>
cc: Anton Blanchard <anton@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
arch/powerpc/kernel/crash.c | 3 +++
1 file changed, 3 insertions(+)
--- a/arch/powerpc/kernel/crash.c
+++ b/arch/powerpc/kernel/crash.c
@@ -377,6 +377,9 @@ void default_machine_crash_shutdown(stru
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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/