]> git.ipfire.org Git - thirdparty/linux.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)
committerThierry Reding <treding@nvidia.com>
Fri, 14 Nov 2025 16:49:12 +0000 (17:49 +0100)
commit500e1368e46928f4b2259612dcabb6999afae2a6
tree94eaa6eab51dd0695e153457ede0d6cc6029819b
parent3a8660878839faadb4f1a6dd72c3179c1df56787
amba: tegra-ahb: Fix device leak on SMMU enable

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>
drivers/amba/tegra-ahb.c