]> Git Repo - linux.git/commit
bpf: Fix memleak in aux->func_info and aux->btf
authorMartin KaFai Lau <[email protected]>
Sun, 2 Dec 2018 01:08:44 +0000 (17:08 -0800)
committerAlexei Starovoitov <[email protected]>
Sun, 2 Dec 2018 17:12:58 +0000 (09:12 -0800)
commit5482e9a93c83839f94e75db712e6837e6a39962c
tree4a6563610f69436aa35887e450992e7fb8a941d9
parent71fc156ff5361beb1fb4c519add1f1ebda33ff13
bpf: Fix memleak in aux->func_info and aux->btf

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 <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
kernel/bpf/syscall.c
This page took 0.047261 seconds and 4 git commands to generate.