diff options
author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-04-09 15:48:13 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-04-10 07:37:32 +0300 |
commit | 9992649f6786921873a9b89dafa5e04d8c5fef2b (patch) | |
tree | 8d683b66d91eb3abbc4e006dc28b8994fb19d8ae /scripts/generate_rust_analyzer.py | |
parent | d4f610a9bafdec8e3210789aa19335367da696ea (diff) | |
download | linux-9992649f6786921873a9b89dafa5e04d8c5fef2b.tar.xz |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions