aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/intel-iommu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index dcf051d53b74..98be0b55ac0b 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -2235,10 +2235,10 @@ static int identity_mapping(struct pci_dev *pdev)
2235 if (likely(!iommu_identity_mapping)) 2235 if (likely(!iommu_identity_mapping))
2236 return 0; 2236 return 0;
2237 2237
2238 info = pdev->dev.archdata.iommu;
2239 if (info && info != DUMMY_DEVICE_DOMAIN_INFO)
2240 return (info->domain == si_domain);
2238 2241
2239 list_for_each_entry(info, &si_domain->devices, link)
2240 if (info->dev == pdev)
2241 return 1;
2242 return 0; 2242 return 0;
2243} 2243}
2244 2244