You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cppc_cpufreq: Fix possible null pointer dereference
jira LE-1907
cve CVE-2024-38573
Rebuild_History Non-Buildable kernel-5.14.0-427.37.1.el9_4
commit-author Aleksandr Mishin <amishin@t-argos.ru>
commit cf7de25
cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from
different places with various parameters. So cpufreq_cpu_get() can return
null as 'policy' in some circumstances.
Fix this bug by adding null return check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: a28b2bf ("cppc_cpufreq: replace per-cpu data array with a list")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
(cherry picked from commit cf7de25)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>
0 commit comments