aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2022-02-14 18:22:24 +0000
committerAlex Deucher <[email protected]>2022-02-16 21:44:40 +0000
commiteed1a5c74216907f79f7b1af725e570e95bab0ea (patch)
tree08e1b89e20edad2f3276d21426eb13d18069e968 /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parentdrm/amd/display: Protect update_bw_bounding_box FPU code. (diff)
downloadkernel-eed1a5c74216907f79f7b1af725e570e95bab0ea.tar.gz
kernel-eed1a5c74216907f79f7b1af725e570e95bab0ea.zip
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: 8cda7a4f96e4 ("drm/amdgpu/UAPI: add new CTX OP to get/set stable pstates") Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions