Files
linux/drivers/gpu/drm
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
..
2021-12-14 10:24:28 +01:00
2022-01-24 17:02:43 +01:00
2022-02-07 16:35:35 -08:00
2022-02-07 16:35:35 -08:00
2021-08-10 20:14:01 +02:00
2022-02-07 16:35:35 -08:00
2022-02-07 16:35:35 -08:00
2022-02-07 16:35:35 -08:00
2022-02-07 16:35:35 -08:00
2021-08-10 20:14:01 +02:00
2022-02-07 16:35:35 -08:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2022-02-07 16:35:35 -08:00
2022-02-07 16:35:35 -08:00
2021-08-02 10:19:43 +02:00
2022-01-25 13:09:22 +02:00
2021-08-02 10:19:43 +02:00
2022-02-07 16:35:35 -08:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-08-28 19:00:20 +02:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2022-02-07 16:35:35 -08:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00
2022-01-19 11:15:05 +01:00