[PATCH] [POWEPC] crashdump: do not fail on null pointer dereferencing
Vitaly Wool
vitalywool at gmail.com
Wed May 12 02:02:21 EST 2010
Hi,
> diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
> index 6f4613d..341d8af 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;
> +
Kinda unlikely that desc can be NULL here :)
~Vitaly
More information about the Linuxppc-dev
mailing list