]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpftool: Fix error return code in do_batch()
authorZhihao Cheng <chengzhihao1@huawei.com>
Wed, 9 Jun 2021 11:59:16 +0000 (19:59 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Jun 2021 22:31:09 +0000 (15:31 -0700)
commitb42f237e32ec930006636b0f86e2320b4a5b01be
tree4a80bc04925b32035eeda57111de61558c9268f4
parent8c718c12e662665287bf4266e013b6bdd164bb01
tools/bpftool: Fix error return code in do_batch()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 73245545ab246 ("tools: bpftool: add support for quotations ...")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20210609115916.2186872-1-chengzhihao1@huawei.com
tools/bpf/bpftool/main.c