Message ID | 20241219201344.854254394@goodmis.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | tracing: Convert over to guard() and __free() infrastructure | expand |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 77e9bf271c04..3878e80f55d9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6107,7 +6107,7 @@ int tracing_set_tracer(struct trace_array *tr, const char *buf) if (system_state < SYSTEM_RUNNING && t->noboot) { pr_warn("Tracer '%s' is not allowed on command line, ignored\n", t->name); - return 0; + return -EINVAL; } /* Some tracers are only allowed for the top level buffer */