aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-08-23 15:51:36 +0300
committerRafael J. Wysocki <[email protected]>2024-08-23 15:45:17 +0200
commit6b08b4ee5e60d8789aeb87250f718ef14bebb90e (patch)
tree5e6e2e1be5020353e07948375accd319f8c485cb /tools/testing/selftests/bpf/progs/test_autoload.c
parent95f6580352a7225e619551febb83595bcb77ab17 (diff)
powercap: intel_rapl: Change an error pointer to NULL
The rapl_find_package_domain_cpuslocked() function is supposed to return NULL on error. This new error patch returns ERR_PTR(-EINVAL) but none of the callers check for that so it would lead to an Oops. Fixes: 26096aed255f ("powercap/intel_rapl: Fix the energy-pkg event for AMD CPUs") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions