diff options
author | Christian König <christian.koenig@amd.com> | 2018-07-27 09:32:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-31 17:58:16 -0400 |
commit | 52c054caf83012fe9fe858ee86d90b4ea2cc3cca (patch) | |
tree | 614a12fd37355647ceef8c1bcc3455c695a2641f /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | ccf9ef0b0d10434dec5046bcfc4e834a7b1830fd (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.h | 4 |
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 | ||
716 | struct amdgpu_bo_list * | 716 | int amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id, |
717 | amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id); | 717 | struct amdgpu_bo_list **result); |
718 | void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, | 718 | void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, |
719 | struct list_head *validated); | 719 | struct list_head *validated); |
720 | void amdgpu_bo_list_put(struct amdgpu_bo_list *list); | 720 | void amdgpu_bo_list_put(struct amdgpu_bo_list *list); |