linux/drivers/iommu
Rolf Eike Beer 0ee74d5a48 iommu/vt-d: Fix sysfs leak in alloc_iommu()
iommu_device_sysfs_add() is called before, so is has to be cleaned on subsequent
errors.

Fixes: 39ab9555c2 ("iommu: Add sysfs bindings for struct iommu_device")
Cc: stable@vger.kernel.org # 4.11.x
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/17411490.HIIP88n32C@mobilepool36.emlix.com
Link: https://lore.kernel.org/r/20210525070802.361755-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-05-27 16:07:08 +02:00
..
amd iommu/amd: Fix wrong parentheses on page-specific invalidations 2021-05-18 11:21:28 +02:00
arm iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
intel iommu/vt-d: Fix sysfs leak in alloc_iommu() 2021-05-27 16:07:08 +02:00
dma-iommu.c Merge branch 'stable/for-linus-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb 2021-05-04 10:58:49 -07:00
exynos-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
fsl_pamu_domain.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
fsl_pamu_domain.h
fsl_pamu.c
fsl_pamu.h
hyperv-iommu.c
io-pgfault.c
io-pgtable-arm-v7s.c
io-pgtable-arm.c
io-pgtable-arm.h
io-pgtable.c
ioasid.c
iommu-debugfs.c
iommu-sva-lib.c
iommu-sva-lib.h
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
iova.c
ipmmu-vmsa.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
irq_remapping.c
irq_remapping.h
Kconfig Merge branches 'iommu/fixes', 'arm/mediatek', 'arm/smmu', 'arm/exynos', 'unisoc', 'x86/vt-d', 'x86/amd' and 'core' into next 2021-04-16 17:16:03 +02:00
Makefile Merge branches 'iommu/fixes', 'arm/mediatek', 'arm/smmu', 'arm/exynos', 'unisoc', 'x86/vt-d', 'x86/amd' and 'core' into next 2021-04-16 17:16:03 +02:00
msm_iommu_hw-8xxx.h
msm_iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
msm_iommu.h
mtk_iommu_v1.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
mtk_iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
mtk_iommu.h
of_iommu.c
omap-iommu-debug.c
omap-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
s390-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
sprd-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
sun50i-iommu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
tegra-gart.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
tegra-smmu.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
virtio-iommu.c iommu/virtio: Add missing MODULE_DEVICE_TABLE 2021-05-18 11:24:18 +02:00