diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2020-08-02 19:15:40 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-08-03 16:31:18 +0200 |
commit | 041549b7b2c7811ec40e705c439211f00ade2dda (patch) | |
tree | a055ff76cd9382915f32b7e38abfdff78cb7954c /tools/testing/selftests/bpf/prog_tests | |
parent | a278f3d8191228212c553a5d4303fa603214b717 (diff) | |
download | linux-041549b7b2c7811ec40e705c439211f00ade2dda.tar.gz linux-041549b7b2c7811ec40e705c439211f00ade2dda.tar.bz2 linux-041549b7b2c7811ec40e705c439211f00ade2dda.zip |
tools, bpftool: Fix wrong return value in do_dump()
In case of btf_id does not exist, a negative error code -ENOENT
should be returned.
Fixes: c93cc69004df3 ("bpftool: add ability to dump BTF types")
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200802111540.5384-1-tianjia.zhang@linux.alibaba.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions