The patch titled Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev. has been added to the -mm tree. Its filename is be-a-bit-defensive-in-quirk_nvidia_ck804-so-we-dont-risk-dereferencing-a-null-pdev.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Be a bit defensive in quirk_nvidia_ck804() so we don't risk dereferencing a NULL pdev. From: Jesper Juhl <jesper.juhl@xxxxxxxxx> 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> Acked-by: Alan Cox <alan@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/pci/quirks.c~be-a-bit-defensive-in-quirk_nvidia_ck804-so-we-dont-risk-dereferencing-a-null-pdev drivers/pci/quirks.c --- a/drivers/pci/quirks.c~be-a-bit-defensive-in-quirk_nvidia_ck804-so-we-dont-risk-dereferencing-a-null-pdev +++ a/drivers/pci/quirks.c @@ -1746,6 +1746,8 @@ static void __devinit quirk_nvidia_ck804 * a single one having MSI is enough to be sure that MSI are supported. */ pdev = pci_get_slot(dev->bus, 0); + if (!pdev) + return; if (dev->subordinate && !msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) { printk(KERN_WARNING "PCI: MSI quirk detected. " _ Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are git-acpi.patch nfs-kill-obsolete-nfs_paranoia.patch be-a-bit-defensive-in-quirk_nvidia_ck804-so-we-dont-risk-dereferencing-a-null-pdev.patch isdn-avoid-a-potential-null-ptr-deref-in-ippp.patch nfs2-calculate-w-a-bit-later-in-nfsaclsvc_encode_getaclres.patch nfs3-calculate-w-a-bit-later-in-nfs3svc_encode_getaclres.patch video-sis-remove-unnecessary-variables-in-sis_ddc2delay.patch debug-shared-irqs.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html