diff options
| author | 2025-07-01 17:30:01 -0500 | |
|---|---|---|
| committer | 2025-07-02 12:08:16 +0530 | |
| commit | 4a26df233266a628157d7f0285451d8655defdfc (patch) | |
| tree | ac6da16f8eb5e243912b3f466317a1598f0e6b85 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | cpufreq: armada-8k: make both cpu masks static (diff) | |
cpufreq: armada-8k: Fix off by one in armada_8k_cpufreq_free_table()
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: f525a670533d ("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>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
