diff options
author | 2021-07-29 14:15:30 -0600 | |
---|---|---|
committer | 2021-08-09 17:13:06 +0200 | |
commit | 911ace0ba628424637e42826c8a8b63b89bd5611 (patch) | |
tree | 6c705c078229b5224738a80fb296f0de58702593 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc/iommu: don't set failed sg dma_address to DMA_MAPPING_ERROR (diff) | |
download | linux-dev-911ace0ba628424637e42826c8a8b63b89bd5611.tar.xz linux-dev-911ace0ba628424637e42826c8a8b63b89bd5611.zip |
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 <martin.oliveira@eideticom.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions