Re: [PATCH] bpf: don't fail kmalloc while releasing raw_tp
From: Steven Rostedt
Date: Mon Nov 16 2020 - 16:06:56 EST
On Mon, 16 Nov 2020 16:02:18 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> + if (new) {
> + for (i = 0; old[i].func; i++)
> + if (old[i].func != tp_func->func
> + || old[i].data != tp_func->data)
> + new[j++] = old[i];
Oops, need to check for old[i].func != tp_stub_func here too.
-- Steve
> + new[nr_probes - nr_del].func = NULL;
> + } else {