|
@@ -1272,7 +1272,8 @@ iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu,
|
|
|
|
|
|
spin_lock_irqsave(&device_domain_lock, flags);
|
|
|
list_for_each_entry(info, &domain->devices, link)
|
|
|
- if (info->bus == bus && info->devfn == devfn) {
|
|
|
+ if (info->iommu == iommu && info->bus == bus &&
|
|
|
+ info->devfn == devfn) {
|
|
|
found = 1;
|
|
|
break;
|
|
|
}
|