Re: [PATCH bpf-next] bpf: Fix memleak in aux->func_info and aux->btf

2018-12-02 Thread Alexei Starovoitov
On Sat, Dec 01, 2018 at 05:08:44PM -0800, Martin KaFai Lau wrote: > The aux->func_info and aux->btf are leaked in the error out cases > during bpf_prog_load(). This patch fixes it. > > Fixes: ba64e7d85252 ("bpf: btf: support proper non-jit func info") > Cc: Yonghong Song > Signed-off-by: Martin

[PATCH bpf-next] bpf: Fix memleak in aux->func_info and aux->btf

2018-12-01 Thread Martin KaFai Lau
The aux->func_info and aux->btf are leaked in the error out cases during bpf_prog_load(). This patch fixes it. Fixes: ba64e7d85252 ("bpf: btf: support proper non-jit func info") Cc: Yonghong Song Signed-off-by: Martin KaFai Lau Acked-by: Yonghong Song --- kernel/bpf/syscall.c | 2 ++ 1 file