Re: [PATCH] tracing: Avoid memory leak in process_system_preds()

From: Steven Rostedt
Date: Wed Dec 11 2019 - 11:13:24 EST


On Wed, 11 Dec 2019 09:12:58 +0000
Keita Suzuki <keitasuzuki.park@xxxxxxxxxxxxxxxxxxxx> wrote:

> --- a/kernel/trace/trace_events_filter.c
> +++ b/kernel/trace/trace_events_filter.c
> @@ -1662,7 +1662,7 @@ static int process_system_preds(struct trace_subsystem_dir *dir,
> parse_error(pe, FILT_ERR_BAD_SUBSYS_FILTER, 0);
> return -EINVAL;
> fail_mem:
> - kfree(filter);
> + __free_filter(filter);
> /* If any call succeeded, we still need to sync */
> if (!fail)
> tracepoint_synchronize_unregister();

Applied. Thanks Keita!

-- Steve