]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/intel-iommu.c
Merge tag 'iommu-updates-v3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / iommu / intel-iommu.c
index d4b018e51592f0789dc781b3b3c0c675af3ff92f..7469b5346643595fe1788b04d76135ed30075cfd 100644 (file)
@@ -661,7 +661,7 @@ static struct intel_iommu *device_to_iommu(int segment, u8 bus, u8 devfn)
                        if (drhd->devices[i] &&
                            drhd->devices[i]->subordinate &&
                            drhd->devices[i]->subordinate->number <= bus &&
-                           drhd->devices[i]->subordinate->subordinate >= bus)
+                           drhd->devices[i]->subordinate->busn_res.end >= bus)
                                return drhd->iommu;
                }