Re: [PATCH bpf-next v1 1/5] bpf: Make every prog keep a copy of ctx_arg_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux