git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftests: bpf: initialize bpf_object pointers where needed
[sfrench/cifs-2.6.git]
/
tools
/
testing
/
selftests
/
bpf
/
prog_tests
/
tp_attach_query.c
diff --git
a/tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
b/tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
index a2f476f916375dc6cdac643b8e4bc50f42c50c67..fb095e5cd9afd1dbcb9ca09631689525c54d616b 100644
(file)
--- a/
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
+++ b/
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
@@
-13,6
+13,9
@@
void test_tp_attach_query(void)
struct bpf_prog_info prog_info;
char buf[256];
+ for (i = 0; i < num_progs; i++)
+ obj[i] = NULL;
+
snprintf(buf, sizeof(buf),
"/sys/kernel/debug/tracing/events/sched/sched_switch/id");
efd = open(buf, O_RDONLY, 0);