diff options
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index e410e97e5b0a..3011ea7a3f82 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -1543,7 +1543,7 @@ void prealloc_protection_domains(void) | |||
1543 | u16 devid; | 1543 | u16 devid; |
1544 | 1544 | ||
1545 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 1545 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { |
1546 | devid = (dev->bus->number << 8) | dev->devfn; | 1546 | devid = calc_devid(dev->bus->number, dev->devfn); |
1547 | if (devid > amd_iommu_last_bdf) | 1547 | if (devid > amd_iommu_last_bdf) |
1548 | continue; | 1548 | continue; |
1549 | devid = amd_iommu_alias_table[devid]; | 1549 | devid = amd_iommu_alias_table[devid]; |