aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_gen_internal.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-05-14 00:36:17 +0000
committerDaniel Borkmann <[email protected]>2021-05-18 22:40:44 +0000
commit30f51aedabda92b74927979b2b3b50169e285f6b (patch)
tree7bebd6dfc23710f2a2042179e38d57749faae6d9 /tools/lib/bpf/bpf_gen_internal.h
parentlibbpf: Generate loader program out of BPF ELF file. (diff)
downloadkernel-30f51aedabda92b74927979b2b3b50169e285f6b.tar.gz
kernel-30f51aedabda92b74927979b2b3b50169e285f6b.zip
libbpf: Cleanup temp FDs when intermediate sys_bpf fails.
Fix loader program to close temporary FDs when intermediate sys_bpf command fails. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_gen_internal.h')
-rw-r--r--tools/lib/bpf/bpf_gen_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf_gen_internal.h b/tools/lib/bpf/bpf_gen_internal.h
index f42a55efd559..615400391e57 100644
--- a/tools/lib/bpf/bpf_gen_internal.h
+++ b/tools/lib/bpf/bpf_gen_internal.h
@@ -15,6 +15,7 @@ struct bpf_gen {
void *data_cur;
void *insn_start;
void *insn_cur;
+ ssize_t cleanup_label;
__u32 nr_progs;
__u32 nr_maps;
int log_level;