summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-11 22:26:35 +0100
committerSteven Rostedt <rostedt@goodmis.org>2009-11-12 03:26:55 +0100
commita646365cc330b5aaf4452c91f61b1e0d1acf68d0 (patch)
treea1fda53758eb90e93d4a03efd21b2a35f3b283e0 /kernel/trace/trace.c
parentftrace: Fix unmatched locking in ftrace_regex_write() (diff)
downloadlinux-a646365cc330b5aaf4452c91f61b1e0d1acf68d0.tar.xz
linux-a646365cc330b5aaf4452c91f61b1e0d1acf68d0.zip
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.c2
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,
s = kmalloc(sizeof(*s), GFP_KERNEL);
if (!s)
- return ENOMEM;
+ return -ENOMEM;
trace_seq_init(s);