mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
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]>