[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240419063955.jzfd6pfiag7kz2i6@vireshk-i7>
Date: Fri, 19 Apr 2024 12:09:55 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Aleksandr Mishin <amishin@...rgos.ru>
Cc: Ionela Voinescu <ionela.voinescu@....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] cppc_cpufreq: Fix possible null pointer dereference
On 08-04-24, 12:35, Aleksandr Mishin wrote:
> cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from
> different places with various parameters. So cpufreq_cpu_get() can return
> null as 'policy' in some circumstances.
> Fix this bug by adding null return check.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: a28b2bfc099c ("cppc_cpufreq: replace per-cpu data array with a list")
> Signed-off-by: Aleksandr Mishin <amishin@...rgos.ru>
> ---
> v2: Fix mixed declarations
>
> drivers/cpufreq/cppc_cpufreq.c | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
Applied. Thanks.
--
viresh
Powered by blists - more mailing lists