Re: [PATCH v5 2/5] tracing: Use __free() in trace_probe for cleanup

From: Steven Rostedt
Date: Wed Jan 08 2025 - 10:07:57 EST


On Wed, 8 Jan 2025 11:10:57 +0900
"Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:

> From: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
>
> Use __free() in trace_probe to cleanup some gotos.
>
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
> ---
> Changes in v5:
> - Fix to remove kfree() in for loop. Since I confirmed __free(kfree) is
> called in each iteration.
> ---
> kernel/trace/trace_probe.c | 51 +++++++++++++++-----------------------------
> 1 file changed, 17 insertions(+), 34 deletions(-)

Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

-- Steve