Re: [PATCH] swsmu/amdgpu_smu: Fix the wrong if-condition

2022-11-24 Thread Luben Tuikov
gt; To: airl...@gmail.com; dan...@ffwll.ch >> Cc: dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org; linux- >> ker...@vger.kernel.org >> Subject: [PATCH] swsmu/amdgpu_smu: Fix the wrong if-condition >> >> The logical operator '&&' will make >> s

RE: [PATCH] swsmu/amdgpu_smu: Fix the wrong if-condition

2022-11-24 Thread Quan, Evan
desktop.org; linux- > ker...@vger.kernel.org > Subject: [PATCH] swsmu/amdgpu_smu: Fix the wrong if-condition > > The logical operator '&&' will make > smu->ppt_funcs->set_gfx_power_up_by_imu segment fault when > ppt_funcs is > smu->NULL. > > Signed-off-by: Y

[PATCH] swsmu/amdgpu_smu: Fix the wrong if-condition

2022-11-24 Thread Yu Songping
The logical operator '&&' will make smu->ppt_funcs->set_gfx_power_up_by_imu segment fault when smu->ppt_funcs is NULL. Signed-off-by: Yu Songping --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git