linux-stable/drivers/iommu
Colin Ian King 6b3916435f iommu/omap: Check for failure of a call to omap_iommu_dump_ctx
[ Upstream commit dee9d154f4 ]

It is possible for the call to omap_iommu_dump_ctx to return
a negative error number, so check for the failure and return
the error number rather than pass the negative value to
simple_read_from_buffer.

Fixes: 14e0e6796a ("OMAP: iommu: add initial debugfs support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200714192211.744776-1-colin.king@canonical.com
Addresses-Coverity: ("Improper use of negative value")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 09:48:21 +02:00
..
amd_iommu.c irqdomain/treewide: Keep firmware node unconditionally allocated 2020-07-29 07:42:52 +02:00
amd_iommu_init.c iommu/amd: Fix over-read of ACPI UID from IVRS table 2020-05-27 16:42:52 +02:00
amd_iommu_proto.h
amd_iommu_types.h iommu/amd: Fix the configuration of GCR3 table root pointer 2020-04-24 08:01:22 +02:00
amd_iommu_v2.c
arm-smmu-regs.h
arm-smmu-v3.c iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE 2020-02-28 16:36:04 +01:00
arm-smmu.c iommu/arm-smmu: Avoid constant zero in TLBI writes 2019-06-19 08:20:55 +02:00
dma-iommu.c iommu/dma: Fix MSI reservation allocation 2020-03-20 10:54:18 +01:00
dmar.c iommu/vt-d: Ignore devices with out-of-spec domain number 2020-03-20 10:54:19 +01:00
exynos-iommu.c
fsl_pamu.c
fsl_pamu.h
fsl_pamu_domain.c
fsl_pamu_domain.h
intel-iommu.c iommu/vt-d: Fix a bug in intel_iommu_iova_to_phys() for huge page 2020-03-20 10:54:18 +01:00
intel-svm.c iommu/vt-d: Fix mm reference leak 2020-04-24 08:01:21 +02:00
intel_irq_remapping.c irqdomain/treewide: Free firmware node after domain removal 2020-08-21 09:48:16 +02:00
io-pgtable-arm-v7s.c iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables 2019-04-05 22:31:30 +02:00
io-pgtable-arm.c iommu/io-pgtable-arm: Fix race handling in split_blk_unmap() 2019-11-24 08:22:52 +01:00
io-pgtable.c
io-pgtable.h
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Fix reference count leak in iommu_group_alloc. 2020-06-03 08:18:03 +02:00
iova.c iommu/iova: Avoid false sharing on fq_timer_on 2019-10-05 12:47:58 +02:00
ipmmu-vmsa.c iommu/ipmmu-vmsa: Fix crash on early domain free 2018-12-13 09:18:46 +01:00
irq_remapping.c
irq_remapping.h
Kconfig
Makefile
msm_iommu.c iommu/msm: Don't call iommu_device_{,un}link from atomic context 2018-10-03 17:00:47 -07:00
msm_iommu.h
msm_iommu_hw-8xxx.h
mtk_iommu.c iommu/mediatek: Fix iova_to_phys PA start for 4GB mode 2020-01-27 14:46:44 +01:00
mtk_iommu.h
mtk_iommu_v1.c
of_iommu.c
omap-iommu-debug.c iommu/omap: Check for failure of a call to omap_iommu_dump_ctx 2020-08-21 09:48:21 +02:00
omap-iommu.c iommu/omap: Fix cache flushes on L2 table entries 2018-09-15 09:45:31 +02:00
omap-iommu.h
omap-iopgtable.h
qcom_iommu.c iommu/qcom: Fix local_base status check 2020-05-05 19:15:51 +02:00
rockchip-iommu.c
s390-iommu.c
tegra-gart.c
tegra-smmu.c iommu/tegra-smmu: Fix page tables in > 4 GiB memory 2020-01-04 13:59:36 +01:00