diff options
-rw-r--r-- | drivers/iommu/dmar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index dc9f14811e0f..58dc70bffd5b 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c | |||
@@ -144,7 +144,7 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event) | |||
144 | for (tmp = dev; tmp; tmp = tmp->bus->self) | 144 | for (tmp = dev; tmp; tmp = tmp->bus->self) |
145 | level++; | 145 | level++; |
146 | 146 | ||
147 | size = sizeof(*info) + level * sizeof(struct acpi_dmar_pci_path); | 147 | size = sizeof(*info) + level * sizeof(info->path[0]); |
148 | if (size <= sizeof(dmar_pci_notify_info_buf)) { | 148 | if (size <= sizeof(dmar_pci_notify_info_buf)) { |
149 | info = (struct dmar_pci_notify_info *)dmar_pci_notify_info_buf; | 149 | info = (struct dmar_pci_notify_info *)dmar_pci_notify_info_buf; |
150 | } else { | 150 | } else { |