Skip to content

Commit e41b5af

Browse files
paulcacheuxmhiramat
authored andcommitted
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: Paul Cacheux <paulcacheux@gmail.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
1 parent 9dda18a commit e41b5af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kernel/trace/trace_eprobe.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,13 @@ static int __trace_eprobe_create(int argc, const char *argv[])
969969
goto error;
970970
}
971971
}
972+
trace_probe_log_clear();
972973
return ret;
974+
973975
parse_error:
974976
ret = -EINVAL;
975977
error:
978+
trace_probe_log_clear();
976979
trace_event_probe_cleanup(ep);
977980
return ret;
978981
}

0 commit comments

Comments
 (0)