iommu/amd: Propagate errors from amd_iommu_init_api
This function can fail. Propagate any errors back to the initialization state machine. Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
@@ -1391,9 +1391,10 @@ static int __init amd_iommu_init_pci(void)
|
||||
for_each_iommu(iommu)
|
||||
iommu_flush_all_caches(iommu);
|
||||
|
||||
amd_iommu_init_api();
|
||||
ret = amd_iommu_init_api();
|
||||
|
||||
print_iommu_info();
|
||||
if (!ret)
|
||||
print_iommu_info();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user