diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-11 16:26:35 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-11 21:26:55 -0500 |
commit | a646365cc330b5aaf4452c91f61b1e0d1acf68d0 (patch) | |
tree | a1fda53758eb90e93d4a03efd21b2a35f3b283e0 /kernel/trace/trace.c | |
parent | ed146b25942b428f8e8056587b7638ce76573c2f (diff) |
tracing: Fix return value of tracing_stats_read()
The function tracing_stats_read() mistakenly returns ENOMEM instead
of the negative value -ENOMEM.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
LKML-Reference: <4AFB2C0B.50605@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index b20d3ec75de9..03c7fd55c5f9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -3730,7 +3730,7 @@ tracing_stats_read(struct file *filp, char __user *ubuf, | |||
3730 | 3730 | ||
3731 | s = kmalloc(sizeof(*s), GFP_KERNEL); | 3731 | s = kmalloc(sizeof(*s), GFP_KERNEL); |
3732 | if (!s) | 3732 | if (!s) |
3733 | return ENOMEM; | 3733 | return -ENOMEM; |
3734 | 3734 | ||
3735 | trace_seq_init(s); | 3735 | trace_seq_init(s); |
3736 | 3736 | ||