Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a646365c authored by Roel Kluin's avatar Roel Kluin Committed by Steven Rostedt
Browse files

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: default avatarRoel Kluin <roel.kluin@gmail.com>
LKML-Reference: <4AFB2C0B.50605@gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent ed146b25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);