aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorHenry Martin <[email protected]>2025-04-09 12:48:13 +0000
committerViresh Kumar <[email protected]>2025-04-10 04:37:32 +0000
commit9992649f6786921873a9b89dafa5e04d8c5fef2b (patch)
tree8d683b66d91eb3abbc4e006dc28b8994fb19d8ae /rust/helpers/helpers.c
parentcpufreq: Do not enable by default during compile testing (diff)
downloadkernel-9992649f6786921873a9b89dafa5e04d8c5fef2b.tar.gz
kernel-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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions