Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ad4796f2 authored by Henry Martin's avatar Henry Martin Committed by Greg Kroah-Hartman
Browse files

cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()



[ Upstream commit 73b24dc731731edf762f9454552cb3a5b7224949 ]

cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
in the policy->cpus mask. scpi_cpufreq_get_rate() does not check for
this case, which results in a NULL pointer dereference.

Fixes: 343a8d17 ("cpufreq: scpi: remove arm_big_little dependency")
Signed-off-by: default avatarHenry Martin <bsdhenrymartin@gmail.com>
Acked-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6b9f9b99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment