kernel_samsung_a53x/drivers/iommu
Aleksandr Aprelkov c12a768129 iommu/arm-smmu-v3: Free MSIs in case of ENOMEM
[ Upstream commit 80fea979dd9d48d67c5b48d2f690c5da3e543ebd ]

If devm_add_action() returns -ENOMEM, then MSIs are allocated but not
not freed on teardown. Use devm_add_action_or_reset() instead to keep
the static analyser happy.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Aleksandr Aprelkov <aaprelkov@usergate.com>
Link: https://lore.kernel.org/r/20240403053759.643164-1-aaprelkov@usergate.com
[will: Tweak commit message, remove warning message]
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:07 +01:00
..
amd iommu/amd: Fix sysfs leak in iommu init 2024-11-19 14:19:03 +01:00
arm iommu/arm-smmu-v3: Free MSIs in case of ENOMEM 2024-11-19 14:19:07 +01:00
intel iommu/vt-d: Allocate local memory for page request queue 2024-11-19 11:32:20 +01:00
dma-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-cpif-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-cpif-iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-pcie-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-pcie-iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_pamu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_pamu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_pamu_domain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_pamu_domain.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hyperv-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io-pgtable-arm-v7s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io-pgtable-arm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io-pgtable-arm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io-pgtable.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioasid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu-traces.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iova.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipmmu-vmsa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_remapping.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_remapping.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msm_iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msm_iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msm_iommu_hw-8xxx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_iommu_v1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-iommu-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-iopgtable.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s390-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-iommu-fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-iommu-group.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-iommu.c iommu/samsung: Disable fault reporting by default 2024-11-17 17:44:13 +01:00
samsung-iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-secure-iova.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun50i-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra-gart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra-smmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio-iommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00