]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2020 06:15:14 +0000 (08:15 +0200)
commitde59f2fbe6ca35db35c79a64dbb6ed66a024cfb5
treea7042a451fc3943294645db88932a4cd9e37a852
parent205757f476e86a6048f79c8ab1745bdfe5ca62f6
iommu/qcom: Fix local_base status check

commit b52649aee6243ea661905bdc5fbe28cc5f6dec76 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/qcom_iommu.c