iommu/qcom: Fix local_base status check
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 18 Apr 2020 13:47:03 +0000 (21:47 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 1 May 2020 11:37:23 +0000 (13:37 +0200)
commitb52649aee6243ea661905bdc5fbe28cc5f6dec76
treec9eda5b546f9594a44e30089205143754130f862
parentae74c19faa7d7996e857e13165bd40fc4a285e0d
iommu/qcom: Fix local_base status check

The function qcom_iommu_device_probe() does not perform sufficient
error checking after executing devm_ioremap_resource(), which can
result in crashes if a critical error path is encountered.

Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200418134703.1760-1-tangbin@cmss.chinamobile.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/qcom_iommu.c