diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-11 21:26:35 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-12 02:26:55 (GMT) |
commit | a646365cc330b5aaf4452c91f61b1e0d1acf68d0 (patch) | |
tree | a1fda53758eb90e93d4a03efd21b2a35f3b283e0 /kernel/trace/trace.c | |
parent | ed146b25942b428f8e8056587b7638ce76573c2f (diff) | |
download | linux-fsl-qoriq-a646365cc330b5aaf4452c91f61b1e0d1acf68d0.tar.xz |
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 b20d3ec..03c7fd5 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -3730,7 +3730,7 @@ tracing_stats_read(struct file *filp, char __user *ubuf, s = kmalloc(sizeof(*s), GFP_KERNEL); if (!s) - return ENOMEM; + return -ENOMEM; trace_seq_init(s); |