]> 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>
Mon, 19 Jan 2026 12:09:54 +0000 (13:09 +0100)
commit53693b3268c2b91337ecdc7112c94bdf6697a48e
treeb8b05b6a2f167b54970fc2f682397e059714c78b
parent5ba8ba12920c188ab966eb9816118a139193603f
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