]> err.no Git - linux-2.6/commit
PCI: Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a...
authorJesper Juhl <jesper.juhl@gmail.com>
Mon, 4 Dec 2006 23:14:48 +0000 (15:14 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Dec 2006 18:54:43 +0000 (10:54 -0800)
commit9ac0ce8596b17093739d42721cc8a616cedf734b
tree799a7def2858511b790106e1fc72c6a1a9b5074e
parent1597cacbe39802d86656d1f2e6329895bd2ef531
PCI: Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev.

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@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/quirks.c