Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142255
b: refs/heads/master
c: 924b623
h: refs/heads/master
i:
  142253: 6092c75
  142251: afe64a3
  142247: a0cad2a
  142239: 9e1f028
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Apr 4, 2009
1 parent 4a72438 commit 807e84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0b03bd1c6725a3463290d7f9626e4b583518a5a
refs/heads/master: 924b6231edfaf1e764ffb4f97ea382bf4facff58
7 changes: 6 additions & 1 deletion trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,16 @@ static struct intel_iommu *device_to_iommu(u8 bus, u8 devfn)
if (drhd->ignored)
continue;

for (i = 0; i < drhd->devices_cnt; i++)
for (i = 0; i < drhd->devices_cnt; i++) {
if (drhd->devices[i] &&
drhd->devices[i]->bus->number == bus &&
drhd->devices[i]->devfn == devfn)
return drhd->iommu;
if (drhd->devices[i]->subordinate &&
drhd->devices[i]->subordinate->number <= bus &&
drhd->devices[i]->subordinate->subordinate >= bus)
return drhd->iommu;
}

if (drhd->include_all)
return drhd->iommu;
Expand Down

0 comments on commit 807e84a

Please sign in to comment.