diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-14 20:22:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-21 10:53:06 +0200 |
commit | dbb9c0316d09285ed98691f9f97a4afe2e98c16e (patch) | |
tree | 9c61123bff93247076bdbcda55d91a38d7c06c1f /include/linux/intel-iommu.h | |
parent | 7f96d1a1a357219344c2743a9c0f837d2221c1a4 (diff) |
iommu/omap: Check for failure of a call to omap_iommu_dump_ctx
[ Upstream commit dee9d154f40c58d02f69acdaa5cfd1eae6ebc28b ]
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: 14e0e6796a0d ("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>
Diffstat (limited to 'include/linux/intel-iommu.h')
0 files changed, 0 insertions, 0 deletions