Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iommu/sun50i: fix device leak on of_xlate()

Make sure to drop the reference taken to the iommu platform device when
looking up its driver data during of_xlate().

Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver")
Cc: stable@vger.kernel.org # 5.8
Cc: Maxime Ripard <mripard@kernel.org>
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>

authored by

Johan Hovold and committed by
Joerg Roedel
f916109b 13e1d629

+2
+2
drivers/iommu/sun50i-iommu.c
··· 841 841 842 842 dev_iommu_priv_set(dev, platform_get_drvdata(iommu_pdev)); 843 843 844 + put_device(&iommu_pdev->dev); 845 + 844 846 return iommu_fwspec_add_ids(dev, &id, 1); 845 847 } 846 848