Message ID | 8dd92d0e-ea93-438b-938b-e966f6039ed0@web.de (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
Series | tracing/fprobe: Call trace_probe_log_set_index(0) only once in __trace_fprobe_create() | expand |
diff --git a/kernel/trace/trace_fprobe.c b/kernel/trace/trace_fprobe.c index 62e6a8f4aae9..752d1f163258 100644 --- a/kernel/trace/trace_fprobe.c +++ b/kernel/trace/trace_fprobe.c @@ -1047,13 +1047,12 @@ static int __trace_fprobe_create(int argc, const char *argv[]) if (ret < 0) goto parse_error; + trace_probe_log_set_index(0); if (!is_return && maxactive) { - trace_probe_log_set_index(0); trace_probe_log_err(1, BAD_MAXACT_TYPE); goto parse_error; } - trace_probe_log_set_index(0); if (event) { ret = traceprobe_parse_event_name(&event, &group, gbuf, event - argv[0]);