[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240903085920.rk4bx5qqdbmj3aom@vireshk-i7>
Date: Tue, 3 Sep 2024 14:29:20 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Anastasia Belova <abelova@...ralinux.ru>
Cc: Huang Rui <ray.huang@....com>,
"Gautham R. Shenoy" <gautham.shenoy@....com>,
Mario Limonciello <mario.limonciello@....com>,
Perry Yuan <perry.yuan@....com>,
"Rafael J. Wysocki" <rafael@...nel.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH v2] cpufreq: amd-pstate: add check for cpufreq_cpu_get's
return value
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@...ralinux.ru>
> ---
> v2: remove mixing code and declarations
> drivers/cpufreq/amd-pstate.c | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
Applied. Thanks.
--
viresh
Powered by blists - more mailing lists