aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-07-27 09:32:04 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-31 17:58:16 -0400
commit52c054caf83012fe9fe858ee86d90b4ea2cc3cca (patch)
tree614a12fd37355647ceef8c1bcc3455c695a2641f /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentccf9ef0b0d10434dec5046bcfc4e834a7b1830fd (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 1f6345dda6ea..4d4d6697fbce 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -713,8 +713,8 @@ struct amdgpu_bo_list {
713 struct amdgpu_bo_list_entry *array; 713 struct amdgpu_bo_list_entry *array;
714}; 714};
715 715
716struct amdgpu_bo_list * 716int amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id,
717amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id); 717 struct amdgpu_bo_list **result);
718void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, 718void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list,
719 struct list_head *validated); 719 struct list_head *validated);
720void amdgpu_bo_list_put(struct amdgpu_bo_list *list); 720void amdgpu_bo_list_put(struct amdgpu_bo_list *list);