Skip to content

Commit

Permalink
tracing: Fix return value of tracing_stats_read()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Steven Rostedt committed Nov 12, 2009
1 parent ed146b2 commit a646365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a646365

Please sign in to comment.