Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63876
b: refs/heads/master
c: f055a06
h: refs/heads/master
v: v3
  • Loading branch information
Murillo Fernandes Bernardes authored and Linus Torvalds committed Aug 11, 2007
1 parent fdc06be commit 297888f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 3320ad994afb2c44ad34b3b34c3c5cf0da297331
refs/heads/master: f055a0619aae795832ef6a783021184925758b67
13 changes: 6 additions & 7 deletions trunk/arch/x86_64/kernel/pci-calgary.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,16 +367,15 @@ static inline struct iommu_table *find_iommu_table(struct device *dev)

pdev = to_pci_dev(dev);

/* is the device behind a bridge? */
if (unlikely(pdev->bus->parent))
pbus = pdev->bus->parent;
else
pbus = pdev->bus;
pbus = pdev->bus;

/* is the device behind a bridge? Look for the root bus */
while (pbus->parent)
pbus = pbus->parent;

tbl = pci_iommu(pbus);

BUG_ON(pdev->bus->parent &&
(tbl->it_busno != pdev->bus->parent->number));
BUG_ON(tbl && (tbl->it_busno != pbus->number));

return tbl;
}
Expand Down

0 comments on commit 297888f

Please sign in to comment.