diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:53 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:08:12 -0400 |
commit | 442e544ce52d4415a024920b84fb95c5f9aa0855 (patch) | |
tree | c8b80e68d2d655732f1bdde79fa896c77d8d2c96 | |
parent | d9af56fbd8b37181bffaad060f74aa2e17382874 (diff) |
ftrace: iter ctrl fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/trace/trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 3ae17e254fc3..688b4cf72d99 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1920,6 +1920,11 @@ tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf, | |||
1920 | break; | 1920 | break; |
1921 | } | 1921 | } |
1922 | } | 1922 | } |
1923 | /* | ||
1924 | * If no option could be set, return an error: | ||
1925 | */ | ||
1926 | if (!trace_options[i]) | ||
1927 | return -EINVAL; | ||
1923 | 1928 | ||
1924 | filp->f_pos += cnt; | 1929 | filp->f_pos += cnt; |
1925 | 1930 | ||