]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amba: tegra-ahb: Fix device leak on SMMU enable
authorJohan Hovold <johan@kernel.org>
Thu, 25 Sep 2025 15:00:07 +0000 (17:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:28 +0000 (10:14 +0100)
commit24a58ffc444c6697378017785d370feb2897c9da
tree0282af2186b9c662131258c4916c8d3c22e989e4
parentf0cab88ff8702607460cee058649d64ae1bd157d
amba: tegra-ahb: Fix device leak on SMMU enable

commit 500e1368e46928f4b2259612dcabb6999afae2a6 upstream.

Make sure to drop the reference taken to the AHB platform device when
looking up its driver data while enabling the SMMU.

Note that holding a reference to a device does not prevent its driver
data from going away.

Fixes: 89c788bab1f0 ("ARM: tegra: Add SMMU enabler in AHB")
Cc: stable@vger.kernel.org # 3.5
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/amba/tegra-ahb.c