diff options
| -rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 13dc2318e17a..f256ffc02e29 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
| @@ -2237,7 +2237,9 @@ static struct dmar_domain *get_domain_for_dev(struct device *dev, int gaw) | |||
| 2237 | bridge_devfn = dev_tmp->devfn; | 2237 | bridge_devfn = dev_tmp->devfn; |
| 2238 | } | 2238 | } |
| 2239 | spin_lock_irqsave(&device_domain_lock, flags); | 2239 | spin_lock_irqsave(&device_domain_lock, flags); |
| 2240 | info = dmar_search_domain_by_dev_info(segment, bus, devfn); | 2240 | info = dmar_search_domain_by_dev_info(segment, |
| 2241 | bridge_bus, | ||
| 2242 | bridge_devfn); | ||
| 2241 | if (info) { | 2243 | if (info) { |
| 2242 | iommu = info->iommu; | 2244 | iommu = info->iommu; |
| 2243 | domain = info->domain; | 2245 | domain = info->domain; |
