aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-12-22 19:36:05 +0000
committerDaniel Borkmann <[email protected]>2017-12-23 00:09:52 +0000
commitb3b1b6532890c70987821946f90c22b8021aaaf8 (patch)
tree1d92de9cfddf5c02a872b48e5bbc5d9e08d54f8d /tools/bpf/bpftool/prog.c
parentselftests/bpf: fix Makefile for passing LLC to the command line (diff)
downloadkernel-b3b1b6532890c70987821946f90c22b8021aaaf8.tar.gz
kernel-b3b1b6532890c70987821946f90c22b8021aaaf8.zip
tools: bpftool: maps: close json array on error paths of show
We can't return from the middle of do_show(), because json_array will not be closed. Break out of the loop. Note that the error handling after the loop depends on errno, so no need to set err. Fixes: 831a0aafe5c3 ("tools: bpftool: add JSON output for `bpftool map *` commands") Signed-off-by: Jakub Kicinski <[email protected]> Acked-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions