linux/drivers/iommu/arm
Johan Hovold 6b8390fcef iommu/qcom: fix device leak on of_xlate()
commit 6a3908ce56 upstream.

Make sure to drop the reference taken to the iommu platform device when
looking up its driver data during of_xlate().

Note that commit e2eae09939 ("iommu/qcom: add missing put_device()
call in qcom_iommu_of_xlate()") fixed the leak in a couple of error
paths, but the reference is still leaking on success and late failures.

Fixes: 0ae349a0f3 ("iommu/qcom: Add qcom_iommu")
Cc: stable@vger.kernel.org	# 4.14: e2eae09939
Cc: Rob Clark <robin.clark@oss.qualcomm.com>
Cc: Yu Kuai <yukuai3@huawei.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-08 10:16:56 +01:00
..
arm-smmu iommu/qcom: fix device leak on of_xlate() 2026-01-08 10:16:56 +01:00
arm-smmu-v3 iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables 2025-12-18 14:03:16 +01:00
Kconfig iommu: Split out and tidy up Arm Kconfig 2025-04-17 16:34:00 +02:00
Makefile Revert "iommu: make inclusion of arm/arm-smmu-v3 directory conditional" 2025-05-31 07:43:16 -07:00