Skip to content
Commit 86e525bc authored by Namhyung Kim's avatar Namhyung Kim Committed by Greg Kroah-Hartman
Browse files

libbpf: Fix error path in bpf_object__elf_init()

[ Upstream commit 8f3f5792 ]

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

Fixes: 88a82120

 ("libbpf: Factor out common ELF operations and improve logging")
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210317145414.884817-1-namhyung@kernel.org
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 42801323
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment