Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142257
b: refs/heads/master
c: 4958c5d
h: refs/heads/master
i:
  142255: 807e84a
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Apr 6, 2009
1 parent e387552 commit 3074765
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 276dbf997043cbf38f0087624e0f9c51742c8885
refs/heads/master: 4958c5dc7bcb2e42d985cd26aeafd8a7eca9ab1e
3 changes: 2 additions & 1 deletion trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ static struct intel_iommu *device_to_iommu(int segment, u8 bus, u8 devfn)
drhd->devices[i]->bus->number == bus &&
drhd->devices[i]->devfn == devfn)
return drhd->iommu;
if (drhd->devices[i]->subordinate &&
if (drhd->devices[i] &&
drhd->devices[i]->subordinate &&
drhd->devices[i]->subordinate->number <= bus &&
drhd->devices[i]->subordinate->subordinate >= bus)
return drhd->iommu;
Expand Down

0 comments on commit 3074765

Please sign in to comment.