]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add missing nest end to synth_event_trace_start() error case
authorTom Zanussi <zanussi@kernel.org>
Mon, 10 Feb 2020 23:06:48 +0000 (17:06 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 11 Feb 2020 02:58:19 +0000 (21:58 -0500)
commit5ae4a46f19290dbba714de64e41fed06f4049c45
treeba590fed50e2fc5f496d7b4f9f46bc2156fb24b2
parentf81a7669ab9977741777cdea07dd09abc7e78228
tracing: Add missing nest end to synth_event_trace_start() error case

If the ring_buffer reserve in synth_event_trace_start() fails, the
matching ring_buffer_nest_end() should be called in the error code,
since nothing else will ever call it in this case.

Link: http://lkml.kernel.org/r/20abc444b3eeff76425f895815380abe7aa53ff8.1581374549.git.zanussi@kernel.org
Fixes: b3af80a9b5ba3 ("tracing: Add synth_event_trace() and related functions")
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c