OSDN Git Service

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)
commit52c054caf83012fe9fe858ee86d90b4ea2cc3cca
tree614a12fd37355647ceef8c1bcc3455c695a2641f
parentccf9ef0b0d10434dec5046bcfc4e834a7b1830fd
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