iommu/qcom: add missing put_device() call in qcom_iommu_of_xlate()
authorYu Kuai <yukuai3@huawei.com>
Tue, 29 Sep 2020 01:40:37 +0000 (09:40 +0800)
committerWill Deacon <will@kernel.org>
Tue, 29 Sep 2020 15:25:52 +0000 (16:25 +0100)
commite2eae09939a89e0994f7965ba3c676a5eac8b4b0
treeed2fcfd765541e2de4738e7ec739e4e136231db3
parentf534d98b9d27053279da015d0187a09e3a090ccd
iommu/qcom: add missing put_device() call in qcom_iommu_of_xlate()

if of_find_device_by_node() succeed, qcom_iommu_of_xlate() doesn't have
a corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu")
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200929014037.2436663-1-yukuai3@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/qcom_iommu.c