Commit 5436a543 authored by Pu Lehui's avatar Pu Lehui Committed by Andrii Nakryiko
Browse files

libbpf: Fix return zero when elf_begin failed



The error number of elf_begin is omitted when encapsulating the
btf_find_elf_sections function.

Fixes: c86f180f ("libbpf: Make btf_parse_elf process .BTF.base transparently")
Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250115100241.4171581-2-pulehui@huaweicloud.com
parent 4a04cb32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment