diff options
| author | Henry Martin <[email protected]> | 2025-04-08 15:03:53 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2025-04-10 04:38:47 +0000 |
| commit | 484d3f15cc6cbaa52541d6259778e715b2c83c54 (patch) | |
| tree | 5c2a3dea8567b60e0e5f497e2cbaea8738a9f2d0 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate() (diff) | |
| download | kernel-484d3f15cc6cbaa52541d6259778e715b2c83c54.tar.gz kernel-484d3f15cc6cbaa52541d6259778e715b2c83c54.zip | |
cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
in the policy->cpus mask. scmi_cpufreq_get_rate() does not check for
this case, which results in a NULL pointer dereference.
Add NULL check after cpufreq_cpu_get_raw() to prevent this issue.
Fixes: 99d6bdf33877 ("cpufreq: add support for CPU DVFS based on SCMI message protocol")
Signed-off-by: Henry Martin <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
