diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-10-17 03:58:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-17 03:58:25 -0400 |
commit | bb3c3e807140816b5f5fd4840473ee52a916ad4f (patch) | |
tree | 9e8a69d266a7df86ca16177eefffab4b4e910753 /kernel/trace/trace_events.c | |
parent | 595c36490deb49381dc51231a3d5e6b66786ed27 (diff) | |
parent | 012abeea669ea49636cf952d13298bb68654146a (diff) |
Merge commit 'v2.6.32-rc5' into perf/probes
Conflicts:
kernel/trace/trace_event_profile.c
Merge reason: update to -rc5 and resolve conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 155b5d5a4e45..f2f5064701e5 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -228,10 +228,9 @@ ftrace_event_write(struct file *file, const char __user *ubuf, | |||
228 | size_t cnt, loff_t *ppos) | 228 | size_t cnt, loff_t *ppos) |
229 | { | 229 | { |
230 | struct trace_parser parser; | 230 | struct trace_parser parser; |
231 | size_t read = 0; | 231 | ssize_t read, ret; |
232 | ssize_t ret; | ||
233 | 232 | ||
234 | if (!cnt || cnt < 0) | 233 | if (!cnt) |
235 | return 0; | 234 | return 0; |
236 | 235 | ||
237 | ret = tracing_update_buffers(); | 236 | ret = tracing_update_buffers(); |
@@ -243,7 +242,7 @@ ftrace_event_write(struct file *file, const char __user *ubuf, | |||
243 | 242 | ||
244 | read = trace_get_user(&parser, ubuf, cnt, ppos); | 243 | read = trace_get_user(&parser, ubuf, cnt, ppos); |
245 | 244 | ||
246 | if (trace_parser_loaded((&parser))) { | 245 | if (read >= 0 && trace_parser_loaded((&parser))) { |
247 | int set = 1; | 246 | int set = 1; |
248 | 247 | ||
249 | if (*parser.buffer == '!') | 248 | if (*parser.buffer == '!') |