diff options
author | 2025-04-09 20:48:13 +0800 | |
---|---|---|
committer | 2025-04-10 10:07:32 +0530 | |
commit | 9992649f6786921873a9b89dafa5e04d8c5fef2b (patch) | |
tree | 8d683b66d91eb3abbc4e006dc28b8994fb19d8ae /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | cpufreq: Do not enable by default during compile testing (diff) | |
download | linux-rng-9992649f6786921873a9b89dafa5e04d8c5fef2b.tar.xz linux-rng-9992649f6786921873a9b89dafa5e04d8c5fef2b.zip |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions