--- a/drivers/iommu/intel-iommu.c 2017-02-24 23:29:59.758656270 +0100 +++ b/drivers/iommu/intel-iommu.c 2017-02-24 23:30:29.672500523 +0100 @@ -915,7 +915,7 @@ * which we used for the IOMMU lookup. Strictly speaking * we could do this for all PCI devices; we only need to * get the BDF# from the scope table for ACPI matches. */ - if (pdev->is_virtfn) + if (pdev && pdev->is_virtfn) goto got_pdev; *bus = drhd->devices[i].bus;