summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool
diff options
context:
space:
mode:
authorYuntao Wang <ytcoode@gmail.com>2022-04-08 12:14:52 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2022-04-08 22:38:17 +0200
commit658d87687cd5a6c8762d1de8abee1e6792d8d71e (patch)
treef8e4b4ae42548cec1a14f8c8efd30046203a84c2 /tools/bpf/bpftool
parent8555defe48610a7efe9f2d72689e2d4f006898d7 (diff)
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 <ytcoode@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220408041452.933944-1-ytcoode@gmail.com
Diffstat (limited to 'tools/bpf/bpftool')
0 files changed, 0 insertions, 0 deletions