diff options
-rw-r--r-- | drivers/iommu/dmar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index f445c10df8df..39f8b717fe84 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c | |||
@@ -152,7 +152,8 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event) | |||
152 | info->seg = pci_domain_nr(dev->bus); | 152 | info->seg = pci_domain_nr(dev->bus); |
153 | info->level = level; | 153 | info->level = level; |
154 | if (event == BUS_NOTIFY_ADD_DEVICE) { | 154 | if (event == BUS_NOTIFY_ADD_DEVICE) { |
155 | for (tmp = dev, level--; tmp; tmp = tmp->bus->self) { | 155 | for (tmp = dev; tmp; tmp = tmp->bus->self) { |
156 | level--; | ||
156 | info->path[level].device = PCI_SLOT(tmp->devfn); | 157 | info->path[level].device = PCI_SLOT(tmp->devfn); |
157 | info->path[level].function = PCI_FUNC(tmp->devfn); | 158 | info->path[level].function = PCI_FUNC(tmp->devfn); |
158 | if (pci_is_root_bus(tmp->bus)) | 159 | if (pci_is_root_bus(tmp->bus)) |