]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix error handling bug in btf_dump__new
authorAndrii Nakryiko <andriin@fb.com>
Fri, 17 Jan 2020 06:07:58 +0000 (22:07 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jan 2020 16:33:17 +0000 (08:33 -0800)
commita3872be6d60f9a655f0d6053ed250bf30dbfaddf
tree38d803f76d5523637b4cb1736c124c6f3e0a4da9
parenta457f49536d7e3b2964b3f8c237296debb6b33b5
libbpf: Fix error handling bug in btf_dump__new

Fix missing jump to error handling in btf_dump__new, found by Coverity static
code analysis.

Fixes: 1e254a3bbdc7 ("libbpf: Expose BTF-to-C type declaration emitting API")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200117060801.1311525-2-andriin@fb.com
tools/lib/bpf/btf_dump.c