]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a17ea9b443ca90f16dbf2db4f941891b24a07a5
treec9eda5b546f9594a44e30089205143754130f862
parent83d27ab29e478aa01d45c0866ce30d3087d48504
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: bfd180ff99ee ("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