diff options
author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-04-08 23:03:54 +0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-04-10 10:09:03 +0530 |
commit | 73b24dc731731edf762f9454552cb3a5b7224949 (patch) | |
tree | 543039f97a966d8b3d3eb8c2702e34654aa659c9 /rust/helpers/helpers.c | |
parent | 484d3f15cc6cbaa52541d6259778e715b2c83c54 (diff) | |
download | linux-73b24dc731731edf762f9454552cb3a5b7224949.tar.gz linux-73b24dc731731edf762f9454552cb3a5b7224949.tar.bz2 linux-73b24dc731731edf762f9454552cb3a5b7224949.zip |
cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
in the policy->cpus mask. scpi_cpufreq_get_rate() does not check for
this case, which results in a NULL pointer dereference.
Fixes: 343a8d17fa8d ("cpufreq: scpi: remove arm_big_little dependency")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions