From: Roel Kluin Date: Wed, 11 Nov 2009 21:26:35 +0000 (+0100) Subject: tracing: Fix return value of tracing_stats_read() X-Git-Tag: firefly_0821_release~9833^2~3981^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a646365cc330b5aaf4452c91f61b1e0d1acf68d0;p=firefly-linux-kernel-4.4.55.git 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 LKML-Reference: <4AFB2C0B.50605@gmail.com> Signed-off-by: Steven Rostedt --- 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);