[lvc-project] [PATCH v2] cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value

Viresh Kumar viresh.kumar at linaro.org
Tue Sep 3 11:59:20 MSK 2024


On 26-08-24, 16:38, Anastasia Belova wrote:
> cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it
> and return in case of error.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Signed-off-by: Anastasia Belova <abelova at astralinux.ru>
> ---
> v2: remove mixing code and declarations
>  drivers/cpufreq/amd-pstate.c | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)

Applied. Thanks.

-- 
viresh



More information about the lvc-project mailing list