RE: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Deucher, Alexander
eedesktop.org > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drm/amd/powerplay: check if table_info is NULL before > dereferencing it > > On 15/11/16 15:49, Deucher, Alexander wrote: > >> -Original Message- > >> From: Colin King [mailto:colin.k...@c

Re: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Colin Ian King
, Ray; Nils Wallménius; Baoyou Xie; dri- >> de...@lists.freedesktop.org >> Cc: linux-kernel@vger.kernel.org >> Subject: [PATCH] drm/amd/powerplay: check if table_info is NULL before >> dereferencing it >> >> From: Colin Ian King >> >> table_info is bei

RE: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Deucher, Alexander
op.org > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH] drm/amd/powerplay: check if table_info is NULL before > dereferencing it > > From: Colin Ian King > > table_info is being dereferenced before a null check, which implies > a potential null pointer deference erro

[PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Colin King
From: Colin Ian King table_info is being dereferenced before a null check, which implies a potential null pointer deference error. Fix this by moving the null check of table_info to the start of smu7_get_evv_voltages to avoid potential null pointer deferencing. Found with static analysis by Cov