diff options
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 08a3fb5b3187..ff8aecdc6dd6 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2208,10 +2208,9 @@ ftrace_regex_write(struct file *file, const char __user *ubuf, | |||
2208 | !trace_parser_cont(parser)) { | 2208 | !trace_parser_cont(parser)) { |
2209 | ret = ftrace_process_regex(parser->buffer, | 2209 | ret = ftrace_process_regex(parser->buffer, |
2210 | parser->idx, enable); | 2210 | parser->idx, enable); |
2211 | trace_parser_clear(parser); | ||
2211 | if (ret) | 2212 | if (ret) |
2212 | goto out_unlock; | 2213 | goto out_unlock; |
2213 | |||
2214 | trace_parser_clear(parser); | ||
2215 | } | 2214 | } |
2216 | 2215 | ||
2217 | ret = read; | 2216 | ret = read; |