diff options
-rw-r--r-- | kernel/trace/trace_events.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index a576bbe75577..36a957c996c7 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -565,6 +565,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match, | |||
565 | static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) | 565 | static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) |
566 | { | 566 | { |
567 | char *event = NULL, *sub = NULL, *match; | 567 | char *event = NULL, *sub = NULL, *match; |
568 | int ret; | ||
568 | 569 | ||
569 | /* | 570 | /* |
570 | * The buf format can be <subsystem>:<event-name> | 571 | * The buf format can be <subsystem>:<event-name> |
@@ -590,7 +591,13 @@ static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) | |||
590 | event = NULL; | 591 | event = NULL; |
591 | } | 592 | } |
592 | 593 | ||
593 | return __ftrace_set_clr_event(tr, match, sub, event, set); | 594 | ret = __ftrace_set_clr_event(tr, match, sub, event, set); |
595 | |||
596 | /* Put back the colon to allow this to be called again */ | ||
597 | if (buf) | ||
598 | *(buf - 1) = ':'; | ||
599 | |||
600 | return ret; | ||
594 | } | 601 | } |
595 | 602 | ||
596 | /** | 603 | /** |