提交 edcb34da 编写于 作者: J Joerg Roedel

AMD IOMMU: use calc_devid in prealloc_protection_domains

Impact: cleanup
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 c226f853
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册