aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iommu/intel-iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 52be7555b0df..f75d3aef6de6 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3600,14 +3600,14 @@ static int device_notifier(struct notifier_block *nb,
3600 struct pci_dev *pdev = to_pci_dev(dev); 3600 struct pci_dev *pdev = to_pci_dev(dev);
3601 struct dmar_domain *domain; 3601 struct dmar_domain *domain;
3602 3602
3603 if (iommu_no_mapping(dev)) 3603 if (iommu_dummy(pdev))
3604 return 0; 3604 return 0;
3605 3605
3606 domain = find_domain(pdev); 3606 domain = find_domain(pdev);
3607 if (!domain) 3607 if (!domain)
3608 return 0; 3608 return 0;
3609 3609
3610 if (action == BUS_NOTIFY_UNBOUND_DRIVER && !iommu_pass_through) { 3610 if (action == BUS_NOTIFY_UNBOUND_DRIVER) {
3611 domain_remove_one_dev_info(domain, pdev); 3611 domain_remove_one_dev_info(domain, pdev);
3612 3612
3613 if (!(domain->flags & DOMAIN_FLAG_VIRTUAL_MACHINE) && 3613 if (!(domain->flags & DOMAIN_FLAG_VIRTUAL_MACHINE) &&