aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2021-07-29 14:15:20 -0600
committerChristoph Hellwig <hch@lst.de>2021-08-09 17:13:04 +0200
commitc81be74e7d790f090d3c8a52e20a334dc2506a3f (patch)
treee7b9a8a703e6487d4c4e12f5475aba3683a4b4c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
parentdma-mapping: allow map_sg() ops to return negative error codes (diff)
downloadwireguard-linux-c81be74e7d790f090d3c8a52e20a334dc2506a3f.tar.xz
wireguard-linux-c81be74e7d790f090d3c8a52e20a334dc2506a3f.zip
dma-direct: return appropriate error code from dma_direct_map_sg()
Now that the map_sg() op expects error codes instead of return zero on error, convert dma_direct_map_sg() to return an error code. Per the documentation for dma_map_sgtable(), -EIO is returned due to an DMA_MAPPING_ERROR with unknown cause. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
0 files changed, 0 insertions, 0 deletions