Re: [PATCH] Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev.
- From: Alan <alan@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Dec 2006 23:55:41 +0000
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/
- References:
- Prev by Date: [PATCH 23/36] Driver core: change mem class_devices to be real devices
- Next by Date: Re: 2.6.19-rc6-mm2: uli526x only works after reload
- Previous by thread: [PATCH] Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev.
- Next by thread: Re: [PATCH] Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev.
- Index(es):
Relevant Pages
|