]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Clean gen_loader's attach kind.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 1 Dec 2021 18:10:34 +0000 (10:10 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Dec 2021 19:18:35 +0000 (11:18 -0800)
commit888b766be5e038204d1dc15cec4e11a3c8c160ef
tree3a9b52b764e95a54335645429c9942cf1e16db93
parent2cd7ca2a0faa118b66e48cc01e3d937dcd8e442d
libbpf: Clean gen_loader's attach kind.

The gen_loader has to clear attach_kind otherwise the programs
without attach_btf_id will fail load if they follow programs
with attach_btf_id.

Fixes: b424201fbcd7 ("libbpf: Generate loader program out of BPF ELF file.")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-12-alexei.starovoitov@gmail.com
tools/lib/bpf/gen_loader.c