]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix an error code in kfd_mem_attach_dmabuf()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 May 2021 12:47:38 +0000 (15:47 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 May 2021 03:45:37 +0000 (23:45 -0400)
commita83b2547ac4db577e8fe89ff69bf386b220fcbe9
treeb96046607ce7def17c5470d4c6f2aa782fc0cb60
parentcde1601f169441c291c7d55f795eeb3060965307
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: f4ca66cdfb6132 ("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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c