diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-05-28 18:41:45 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-06-11 09:42:24 +0200 |
commit | 3a18404cd952ae529651f72a13e5d6ffee824c2e (patch) | |
tree | f79fa73b3d88281a5525f96954fae14da93ee945 /drivers/iommu/amd_iommu_init.c | |
parent | 2870b0a4911038fd6aed9093cda2dbe80fd0ee2e (diff) | |
download | op-kernel-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.zip op-kernel-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.tar.gz |
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>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-rw-r--r-- | drivers/iommu/amd_iommu_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index e4a6e40..dbac49c 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -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; } |