mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
[ Upstream commit9992649f67] 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:6286bbb405("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
92d55d7051
commit
1053dcf8a5
1 changed files with 8 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue