]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix error path in bpf_object__elf_init()
authorNamhyung Kim <namhyung@kernel.org>
Wed, 17 Mar 2021 14:54:14 +0000 (23:54 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Mar 2021 23:42:21 +0000 (00:42 +0100)
commitd9981f002df78c43fd0f3a6008772acac3999cd8
tree78d28efc44edc22e80a822603631cb0ff15e2a4d
parentf7fede7bce91f7f10bec89958cffab18796805e8
libbpf: Fix error path in bpf_object__elf_init()

When it failed to get section names, it should call into
bpf_object__elf_finish() like others.

Fixes: 310b9844216f ("libbpf: Factor out common ELF operations and improve logging")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210317145414.884817-1-namhyung@kernel.org
tools/lib/bpf/libbpf.c