]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/omap: fix device leaks on probe_device()
authorJohan Hovold <johan@kernel.org>
Mon, 20 Oct 2025 04:53:15 +0000 (06:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:00 +0000 (13:10 +0100)
commitfa4e003b8fcf7e77782682a85d16fdbc83fb54ee
tree15e4f923864247ac828d5b456f5163f5d22424f5
parent6705d63820c6a566c7cb321aa7fcba80b5d903d1
iommu/omap: fix device leaks on probe_device()

commit b5870691065e6bbe6ba0650c0412636c6a239c5a upstream.

Make sure to drop the references taken to the iommu platform devices
when looking up their driver data during probe_device().

Note that the arch data device pointer added by commit 604629bcb505
("iommu/omap: add support for late attachment of iommu devices") has
never been used. Remove it to underline that the references are not
needed.

Fixes: 9d5018deec86 ("iommu/omap: Add support to program multiple iommus")
Fixes: 7d6827748d54 ("iommu/omap: Fix iommu archdata name for DT-based devices")
Cc: stable@vger.kernel.org # 3.18
Cc: Suman Anna <s-anna@ti.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>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h