diff options
| author | Henry Martin <[email protected]> | 2025-04-08 15:03:54 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2025-04-10 04:39:03 +0000 |
| commit | 73b24dc731731edf762f9454552cb3a5b7224949 (patch) | |
| tree | 543039f97a966d8b3d3eb8c2702e34654aa659c9 /rust/helpers/helpers.c | |
| parent | cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate() (diff) | |
| download | kernel-73b24dc731731edf762f9454552cb3a5b7224949.tar.gz kernel-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 <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
