mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-20 08:19:07 +08:00
libbpf: Fix error handling in btf__distill_base()
Coverity points out that after calling btf__new_empty_split() the wrong
value is checked for error.
Fixes: 58e185a0dc35 ("libbpf: Add btf__distill_base() creating split BTF with distilled base BTF")
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240629100058.2866763-1-alan.maguire@oracle.com
This commit is contained in:
committed by
Andrii Nakryiko
parent
c1a6c770c4
commit
24aca0740b
Reference in New Issue
Block a user