Re: [PATCH] drm/amdgpu: check return status before using stable_pstate

2022-02-14 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Feb 14, 2022 at 1:22 PM wrote: > > From: Tom Rix > > Clang static analysis reports this problem > amdgpu_ctx.c:616:26: warning: Assigned value is garbage > or undefined > args->out.pstate.flags = stable_pstate; > ^ ~ >

[PATCH] drm/amdgpu: check return status before using stable_pstate

2022-02-14 Thread trix
From: Tom Rix 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: