linux/drivers/gpu/drm/amd
Tom Rix eed1a5c742 drm/amdgpu: check return status before using stable_pstate
Clang static analysis reports this problem
amdgpu_ctx.c:616:26: warning: Assigned value is garbage
  or undefined
  args->out.pstate.flags = stable_pstate;
                         ^ ~~~~~~~~~~~~~
amdgpu_ctx_stable_pstate can fail without setting
stable_pstate.  So check.

Fixes: 8cda7a4f96 ("drm/amdgpu/UAPI: add new CTX OP to get/set stable pstates")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-16 16:44:40 -05:00
..
acp
amdgpu drm/amdgpu: check return status before using stable_pstate 2022-02-16 16:44:40 -05:00
amdkfd drm/amdkfd: navi2x requires extended engines to map and unmap sdma queues 2022-02-14 15:08:41 -05:00
display drm/amd/display: Protect update_bw_bounding_box FPU code. 2022-02-16 16:44:40 -05:00
include drm/amdgpu: print more error info 2022-02-14 15:08:41 -05:00
pm drm/amd/pm: correct the sequence of sending gpu reset msg 2022-02-14 15:08:41 -05:00