Skip to content

Commit

Permalink
AMD IOMMU: use calc_devid in prealloc_protection_domains
Browse files Browse the repository at this point in the history
Impact: cleanup

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent c226f85 commit edcb34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ void prealloc_protection_domains(void)
u16 devid;

while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
devid = (dev->bus->number << 8) | dev->devfn;
devid = calc_devid(dev->bus->number, dev->devfn);
if (devid > amd_iommu_last_bdf)
continue;
devid = amd_iommu_alias_table[devid];
Expand Down

0 comments on commit edcb34d

Please sign in to comment.