Re: [PATCH] Be a bit defensive in quirk_nvidia_ck804() so we don'trisk dereferencing a NULL pdev.

From: Alan
Date: Fri Dec 01 2006 - 18:49:21 EST


On Sat, 2 Dec 2006 00:21:56 +0100
Jesper Juhl <jesper.juhl@xxxxxxxxx> wrote:

> pci_get_slot() may return NULL if nothing was found.
> quirk_nvidia_ck804() does not check the value returned from pci_get_slot(),
> so it may end up causing a NULL pointer deref.
>
>
> Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>

I don't think its a physically possible case but it does no harm and
it'll kill boot if it happens

Acked-by: Alan Cox <alan@xxxxxxxxxx>
-
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/