diff options
author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-04-09 20:48:13 +0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-04-10 10:07:32 +0530 |
commit | 9992649f6786921873a9b89dafa5e04d8c5fef2b (patch) | |
tree | 8d683b66d91eb3abbc4e006dc28b8994fb19d8ae /tools/perf/scripts/python/task-analyzer.py | |
parent | d4f610a9bafdec8e3210789aa19335367da696ea (diff) |
cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
in the policy->cpus mask. apple_soc_cpufreq_get_rate() does not check
for this case, which results in a NULL pointer dereference.
Fixes: 6286bbb40576 ("cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-states")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions