diff options
author | 2021-05-25 15:47:38 +0300 | |
---|---|---|
committer | 2021-05-25 23:45:37 -0400 | |
commit | 713305570aebdf049db9660f186a8e406cfc5fcf (patch) | |
tree | b96046607ce7def17c5470d4c6f2aa782fc0cb60 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
parent | drm/amdgpu: add missing unreserve on error (diff) | |
download | linux-dev-713305570aebdf049db9660f186a8e406cfc5fcf.tar.xz linux-dev-713305570aebdf049db9660f186a8e406cfc5fcf.zip |
drm/amdgpu: Fix an error code in kfd_mem_attach_dmabuf()
If amdgpu_gem_prime_export() fails, then this code accidentally
returns zero/success instead of a negative error code.
Fixes: 5ac3c3e45fb93d ("drm/amdgpu: Add DMA mapping of GTT BOs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
0 files changed, 0 insertions, 0 deletions