]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/mediatek-v1: fix device leaks on probe()
authorJohan Hovold <johan@kernel.org>
Mon, 20 Oct 2025 04:53:13 +0000 (06:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:55 +0000 (10:16 +0100)
commitfa3cb4012fb22ad7e64a47e55c0598577be492c6
tree1a7cff7f83a99a79215557f8c3e48e78f1d5c907
parent574635a02526b37626d60187b4036d19c1fdb7e1
iommu/mediatek-v1: fix device leaks on probe()

commit 46207625c9f33da0e43bb4ae1e91f0791b6ed633 upstream.

Make sure to drop the references taken to the larb devices during
probe on probe failure (e.g. probe deferral) and on driver unbind.

Fixes: b17336c55d89 ("iommu/mediatek: add support for mtk iommu generation one HW")
Cc: stable@vger.kernel.org # 4.8
Cc: Honghui Zhang <honghui.zhang@mediatek.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/mtk_iommu_v1.c