Files
linux-stable-mirror/drivers/cpufreq
Dan CarpenterandGreg Kroah-Hartman 3e1bb73975 cpufreq: armada-8k: Fix off by one in armada_8k_cpufreq_free_table()
commit 4a26df2332 upstream.

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@vger.kernel.org
Fixes: f525a67053 ("cpufreq: ap806: add cpufreq driver for Armada 8K")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:30:53 +02:00
..
2025-05-02 07:59:00 +02:00