mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
iommu/exynos: fix device leak on of_xlate()
commit05913cc43cupstream. Make sure to drop the reference taken to the iommu platform device when looking up its driver data during of_xlate(). Note that commit1a26044954("iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate()") fixed the leak in a couple of error paths, but the reference is still leaking on success. Fixes:aa759fd376("iommu/exynos: Add callback for initializing devices from device tree") Cc: stable@vger.kernel.org # 4.2:1a26044954Cc: Yu Kuai <yukuai3@huawei.com> Acked-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.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>
This commit is contained in:
parent
ac0c50cc85
commit
f62661f577
1 changed files with 3 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue