]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: qcom-nvmem: add sentinel to qcom_cpufreq_ipq806x_match_list
authorPei Xiao <xiaopei01@kylinos.cn>
Thu, 22 Jan 2026 01:44:48 +0000 (09:44 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jan 2026 05:51:22 +0000 (11:21 +0530)
commit7e3debb4c72fe840d60014192cf93950871fb3be
tree696da642a11a6d3fc51d9c3a817699ecd7045242
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
cpufreq: qcom-nvmem: add sentinel to qcom_cpufreq_ipq806x_match_list

The of_device_id table is expected to be NULL-terminated. Without the
sentinel, the traversal of the array can lead to out-of-bound access,
causing undefined behavior.

This adds the missing sentinel to the qcom_cpufreq_ipq806x_match_list
array.

Fixes: 58f5d39d5ed8 ("cpufreq: qcom-nvmem: add compatible fallback for ipq806x for no SMEM")
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c