mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
iommu/tegra: fix device leak on probe_device()
Make sure to drop the reference taken to the iommu platform device when looking up its driver data during probe_device(). Note that commit9826e393e4("iommu/tegra-smmu: Fix missing put_device() call in tegra_smmu_find") fixed the leak in an error path, but the reference is still leaking on success. Fixes:8918465163("memory: Add NVIDIA Tegra memory controller support") Cc: stable@vger.kernel.org # 3.19:9826e393e4Cc: Miaoqian Lin <linmq006@gmail.com> Acked-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
f916109bf5
commit
c08934a612
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue