diff options
| author | Yuntao Wang <[email protected]> | 2022-04-08 04:14:52 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-04-08 20:38:17 +0000 |
| commit | 658d87687cd5a6c8762d1de8abee1e6792d8d71e (patch) | |
| tree | f8e4b4ae42548cec1a14f8c8efd30046203a84c2 /tools/bpf/bpftool/prog.c | |
| parent | selftests/bpf: Add CO-RE relos into linked_funcs selftests (diff) | |
| download | kernel-658d87687cd5a6c8762d1de8abee1e6792d8d71e.tar.gz kernel-658d87687cd5a6c8762d1de8abee1e6792d8d71e.zip | |
selftests/bpf: Fix return value checks in perf_event_stackmap test
The bpf_get_stackid() function may also return 0 on success as per UAPI BPF
helper documentation. Therefore, correct checks from 'val > 0' to 'val >= 0'
to ensure that they cover all possible success return values.
Signed-off-by: Yuntao Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
