From: Steven Rostedt (Red Hat) Date: Fri, 14 Nov 2014 16:42:06 +0000 (-0500) Subject: tracing: Fix return value of ftrace_raw_output_prep() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~136^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2e095cbecad21078332cd83ae7e61ecfe12c59;p=pandora-kernel.git tracing: Fix return value of ftrace_raw_output_prep() If the trace_seq of ftrace_raw_output_prep() is full this function returns TRACE_TYPE_PARTIAL_LINE, otherwise it returns zero. The problem is that TRACE_TYPE_PARTIAL_LINE happens to be zero! The thing is, the caller of ftrace_raw_output_prep() expects a success to be zero. Change that to expect it to be TRACE_TYPE_HANDLED. Link: http://lkml.kernel.org/r/20141114112522.GA2988@dhcp128.suse.cz Reminded-by: Petr Mladek Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed