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

Fixes: 14e0e6796a0d ("OMAP: iommu: add initial debugfs support")
Signed-off-by: Colin Ian King <>
Addresses-Coverity: ("Improper use of negative value")
Signed-off-by: Joerg Roedel <>
1 file changed