diff options
author | Martin Oliveira <[email protected]> | 2021-07-29 14:15:30 -0600 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-08-09 17:13:06 +0200 |
commit | 911ace0ba628424637e42826c8a8b63b89bd5611 (patch) | |
tree | 6c705c078229b5224738a80fb296f0de58702593 /arch/sparc/mm/iommu.c | |
parent | eb86ef3b2d7e06b1447d4979e282977a845b611b (diff) |
s390/pci: return error code from s390_dma_map_sg()
The .map_sg() op now expects an error code instead of zero on failure.
So propagate the error from __s390_dma_map_sg() up. __s390_dma_map_sg()
returns either -ENOMEM on allocation failure or -EINVAL which is
the same as what's expected by dma_map_sgtable().
Signed-off-by: Martin Oliveira <[email protected]>
Signed-off-by: Logan Gunthorpe <[email protected]>
Acked-by: Niklas Schnelle <[email protected]>
Cc: Gerald Schaefer <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'arch/sparc/mm/iommu.c')
0 files changed, 0 insertions, 0 deletions