Re: [PATCH] cpufreq: qcom-nvmem: add sentinel to qcom_cpufreq_ipq806x_match_list
From: Konrad Dybcio
Date: Fri Dec 05 2025 - 04:38:48 EST
On 12/5/25 7:38 AM, xiaopeitux@xxxxxxxxxxx wrote:
> From: Pei Xiao <xiaopei01@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---
ouch, thanks for catching that!
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad