[PATCH] cpufreq: armada-8k: Fix off by one in armada_8k_cpufreq_free_table()
Viresh Kumar
viresh.kumar at linaro.org
Tue Jul 1 23:39:09 PDT 2025
On 01-07-25, 17:30, Dan Carpenter wrote:
> The freq_tables[] array has num_possible_cpus() elements so, to avoid an
> out of bounds access, this loop should be capped at "< nb_cpus" instead
> of "<= nb_cpus". The freq_tables[] array is allocated in
> armada_8k_cpufreq_init().
>
> Cc: stable at vger.kernel.org
> Fixes: f525a670533d ("cpufreq: ap806: add cpufreq driver for Armada 8K")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> ---
> drivers/cpufreq/armada-8k-cpufreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks.
--
viresh
More information about the linux-arm-kernel
mailing list