]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/sun50i: fix device leak on of_xlate()
authorJohan Hovold <johan@kernel.org>
Mon, 20 Oct 2025 04:53:17 +0000 (06:53 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 17 Nov 2025 08:49:45 +0000 (09:49 +0100)
commitf916109bf53864605d10bf6f4215afa023a80406
tree1731aff76bc5fe0ec76ddafcc5b56009a4d801cc
parent13e1d629d8eda8505d6d4227ab0bd3b0ad898534
iommu/sun50i: fix device leak on of_xlate()

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

Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver")
Cc: stable@vger.kernel.org # 5.8
Cc: Maxime Ripard <mripard@kernel.org>
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>
drivers/iommu/sun50i-iommu.c