diff options
| author | Dennis Beier <nanovim@gmail.com> | 2025-08-30 17:43:59 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-07 00:08:09 +0300 |
| commit | 956b56d17a89775e4957bbddefa45cd3c6c71000 (patch) | |
| tree | ecf4b71b5a2e72a94956481039125ccc589d79d0 /arch/arc/include | |
| parent | f52d3db6d95a06148665d5ad20d94b6b47d7cba8 (diff) | |
| download | linux-956b56d17a89775e4957bbddefa45cd3c6c71000.tar.xz | |
cpufreq/longhaul: handle NULL policy in longhaul_exit
[ Upstream commit 592532a77b736b5153e0c2e4c74aa50af0a352ab ]
longhaul_exit() was calling cpufreq_cpu_get(0) without checking
for a NULL policy pointer. On some systems, this could lead to a
NULL dereference and a kernel warning or panic.
This patch adds a check using unlikely() and returns early if the
policy is NULL.
Bugzilla: #219962
Signed-off-by: Dennis Beier <nanovim@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arc/include')
0 files changed, 0 insertions, 0 deletions
