]> git.ipfire.org Git - thirdparty/linux.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)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 17 Nov 2025 08:49:44 +0000 (09:49 +0100)
commit46207625c9f33da0e43bb4ae1e91f0791b6ed633
treea85a57f2cd1566be21393b7118b10eef1d774a37
parentc77ad28bfee0df9cbc719eb5adc9864462cfb65b
iommu/mediatek-v1: fix device leaks on probe()

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>
drivers/iommu/mtk_iommu_v1.c