On 2/14/25 8:45 AM, Amery Hung wrote:
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index c420edbfb7c8..598f19e6ebd2 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -2315,6 +2315,8 @@ static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) kfree(prog->aux->kfunc_tab); if (prog->aux->attach_btf) btf_put(prog->aux->attach_btf); + if (prog->aux->ctx_arg_info)
A small nit. NULL check is not needed. Acked-by: Martin KaFai Lau <martin.lau@xxxxxxxxxx>
+ kfree(prog->aux->ctx_arg_info);