Re: [PATCH 1/1] ATA: piix, fix pointer deref on suspend

From: Alan Cox
Date: Wed Dec 03 2008 - 05:14:51 EST


On Wed, 3 Dec 2008 09:13:46 +0100
Jiri Slaby <jirislaby@xxxxxxxxx> wrote:

> Hi,
>
> I've found this issue in the mmotm 2008-12-02-17-08.
>
> --
>
> Commit
> ata_piix: add borked Tecra M4 to broken suspend list
> introduced DMI variables checking, but they can be null, so that
> we possibly dereference null.
>
> Check if they are null and avoid checks in that case.

Gak.. Add some kind of helper to the dmi code to do this and do the
comparison.
--
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/