]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add proper error handling to amdgpu_bo_list_get
authorChristian König <christian.koenig@amd.com>
Fri, 27 Jul 2018 13:32:04 +0000 (15:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:16 +0000 (16:58 -0500)
commite982691013f864b91338b56191356e7d68607a79
tree614a12fd37355647ceef8c1bcc3455c695a2641f
parentf8a0e6b8de8e3877562f82ae324c9fd26e0b60c1
drm/amdgpu: add proper error handling to amdgpu_bo_list_get

Otherwise we silently don't use a BO list when the handle is invalid.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c