diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b10c0d90a6ff..7cb6f1922598 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -751,7 +751,7 @@ ftrace_profile_write(struct file *filp, const char __user *ubuf, | |||
751 | out: | 751 | out: |
752 | mutex_unlock(&ftrace_profile_lock); | 752 | mutex_unlock(&ftrace_profile_lock); |
753 | 753 | ||
754 | filp->f_pos += cnt; | 754 | *ppos += cnt; |
755 | 755 | ||
756 | return cnt; | 756 | return cnt; |
757 | } | 757 | } |
@@ -2199,15 +2199,15 @@ ftrace_regex_write(struct file *file, const char __user *ubuf, | |||
2199 | ret = ftrace_process_regex(parser->buffer, | 2199 | ret = ftrace_process_regex(parser->buffer, |
2200 | parser->idx, enable); | 2200 | parser->idx, enable); |
2201 | if (ret) | 2201 | if (ret) |
2202 | goto out; | 2202 | goto out_unlock; |
2203 | 2203 | ||
2204 | trace_parser_clear(parser); | 2204 | trace_parser_clear(parser); |
2205 | } | 2205 | } |
2206 | 2206 | ||
2207 | ret = read; | 2207 | ret = read; |
2208 | 2208 | out_unlock: | |
2209 | mutex_unlock(&ftrace_regex_lock); | 2209 | mutex_unlock(&ftrace_regex_lock); |
2210 | out: | 2210 | |
2211 | return ret; | 2211 | return ret; |
2212 | } | 2212 | } |
2213 | 2213 | ||