diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2021-07-29 14:15:22 -0600 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-08-09 17:13:05 +0200 |
commit | dabb16f67215918c48cf3ff1fc4bc36ca421da2b (patch) | |
tree | f4dea5b7c8bf224c94de32dba2c61bc4e0267ac3 /arch | |
parent | ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b (diff) | |
download | linux-dabb16f67215918c48cf3ff1fc4bc36ca421da2b.tar.gz linux-dabb16f67215918c48cf3ff1fc4bc36ca421da2b.tar.bz2 linux-dabb16f67215918c48cf3ff1fc4bc36ca421da2b.zip |
iommu/dma: return error code from iommu_dma_map_sg()
Return appropriate error codes EINVAL or ENOMEM from
iommup_dma_map_sg(). If lower level code returns ENOMEM, then we
return it, other errors are coalesced into EINVAL.
iommu_dma_map_sg_swiotlb() returns -EIO as its an unknown error
from a call that returns DMA_MAPPING_ERROR.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions