Commit e41b5af4 authored by Paul Cacheux's avatar Paul Cacheux Committed by Masami Hiramatsu (Google)
Browse files

tracing: add missing trace_probe_log_clear for eprobes

Make sure trace_probe_log_clear is called in the tracing
eprobe code path, matching the trace_probe_log_init call.

Link: https://lore.kernel.org/all/20250504-fix-trace-probe-log-race-v3-1-9e99fec7eddc@gmail.com/



Signed-off-by: default avatarPaul Cacheux <paulcacheux@gmail.com>
Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
parent 9dda18a3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -969,10 +969,13 @@ static int __trace_eprobe_create(int argc, const char *argv[])
			goto error;
		}
	}
	trace_probe_log_clear();
	return ret;

parse_error:
	ret = -EINVAL;
error:
	trace_probe_log_clear();
	trace_event_probe_cleanup(ep);
	return ret;
}