diff options
author | Colin Ian King <[email protected]> | 2020-07-14 20:22:11 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-07-22 15:02:33 +0200 |
commit | dee9d154f40c58d02f69acdaa5cfd1eae6ebc28b (patch) | |
tree | 07c86380271daa87dd0f29c135653912820639a9 /scripts/gcc-plugins/sancov_plugin.c | |
parent | f512eefc9bf94e4f943c95833518bdbc80c93f0e (diff) |
iommu/omap: Check for failure of a call to omap_iommu_dump_ctx
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Addresses-Coverity: ("Improper use of negative value")
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions