aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_selftest.c')
-rw-r--r--kernel/trace/trace_selftest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index a6f1ed75f836..85715b86a342 100644
--- a/kernel/trace/trace_selftest.c
+++ b/kernel/trace/trace_selftest.c
@@ -248,6 +248,10 @@ trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr)
248 ftrace_enabled = save_ftrace_enabled; 248 ftrace_enabled = save_ftrace_enabled;
249 tracer_enabled = save_tracer_enabled; 249 tracer_enabled = save_tracer_enabled;
250 250
251 /* kill ftrace totally if we failed */
252 if (ret)
253 ftrace_kill();
254
251 return ret; 255 return ret;
252} 256}
253#endif /* CONFIG_FTRACE */ 257#endif /* CONFIG_FTRACE */