mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
iommu/qcom: fix device leak on of_xlate()
commit6a3908ce56upstream. Make sure to drop the reference taken to the iommu platform device when looking up its driver data during of_xlate(). Note that commite2eae09939("iommu/qcom: add missing put_device() call in qcom_iommu_of_xlate()") fixed the leak in a couple of error paths, but the reference is still leaking on success and late failures. Fixes:0ae349a0f3("iommu/qcom: Add qcom_iommu") Cc: stable@vger.kernel.org # 4.14:e2eae09939Cc: Rob Clark <robin.clark@oss.qualcomm.com> Cc: Yu Kuai <yukuai3@huawei.com> Acked-by: Robin Murphy <robin.murphy@arm.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
d496519ccd
commit
6b8390fcef
1 changed files with 4 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue