summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorDennis Beier <nanovim@gmail.com>2025-08-30 17:43:59 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2025-09-01 08:20:28 +0300
commit592532a77b736b5153e0c2e4c74aa50af0a352ab (patch)
treeef045dcb4c1a4bc09ba4171c2adf30d1ff461c26 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent7bc0084632dda2907ff1d021dff36ffbdd83468c (diff)
downloadlinux-592532a77b736b5153e0c2e4c74aa50af0a352ab.tar.xz
cpufreq/longhaul: handle NULL policy in longhaul_exit
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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions