mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
ed146b2594
commit
a646365cc3
1 changed files with 1 additions and 1 deletions
|
@ -3730,7 +3730,7 @@ tracing_stats_read(struct file *filp, char __user *ubuf,
|
||||||
|
|
||||||
s = kmalloc(sizeof(*s), GFP_KERNEL);
|
s = kmalloc(sizeof(*s), GFP_KERNEL);
|
||||||
if (!s)
|
if (!s)
|
||||||
return ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
trace_seq_init(s);
|
trace_seq_init(s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue