]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/pci/intel-iommu.c
intel-iommu: Fix oops with intel_iommu=igfx_off
[net-next-2.6.git] / drivers / pci / intel-iommu.c
index 83cabdc118dba815d10643179385ce690e7f6b6d..e3e84cac0e9891958e1a534aaced55a4078a476b 100644 (file)
@@ -3247,6 +3247,9 @@ static int device_notifier(struct notifier_block *nb,
        struct pci_dev *pdev = to_pci_dev(dev);
        struct dmar_domain *domain;
 
+       if (iommu_no_mapping(dev))
+               return 0;
+
        domain = find_domain(pdev);
        if (!domain)
                return 0;