Files
linux/arch/ia64/hp/common
Martin Oliveira 62af5ca50c ia64/sba_iommu: return error code from sba_map_sg_attrs()
The .map_sg() op now expects an error code instead of zero on failure.

In the case of a dma_mapping_error() return -EIO as the actual cause
is opaque here.

sba_coalesce_chunks() may only presently fail if sba_alloc_range()
fails, which in turn only fails if the iommu is out of mapping
resources, hence a -ENOMEM is used in that case.

Signed-off-by: Martin Oliveira <[email protected]>
Signed-off-by: Logan Gunthorpe <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Niklas Schnelle <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
2021-08-09 17:13:05 +02:00
..
2019-08-16 14:32:26 -07:00