diff options
| author | Dave Marchevsky <[email protected]> | 2021-11-01 22:43:54 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-11-03 18:22:30 +0000 |
| commit | 60f270753960291895cdd07d360c4e09c56c4596 (patch) | |
| tree | 34e3664ffe802a7fc9a0aca94230071f1f714c7c /tools/bpf/bpftool/prog.c | |
| parent | Merge tag 'x86_core_for_v5.16_rc1' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
| download | kernel-60f270753960291895cdd07d360c4e09c56c4596.tar.gz kernel-60f270753960291895cdd07d360c4e09c56c4596.zip | |
bpftool: Migrate -1 err checks of libbpf fn calls
Per [0], callers of libbpf functions with LIBBPF_STRICT_DIRECT_ERRS set
should handle negative error codes of various values (e.g. -EINVAL).
Migrate two callsites which were explicitly checking for -1 only to
handle the new scheme.
[0]: https://github.com/libbpf/libbpf/wiki/Libbpf-1.0-migration-guide#direct-error-code-returning-libbpf_strict_direct_errs
Signed-off-by: Dave Marchevsky <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Quentin Monnet <[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
