From: Steven Rostedt Date: Thu, 10 Jan 2013 01:54:17 +0000 (-0500) Subject: tracing: Fix regression of trace_options file setting X-Git-Tag: v3.8-rc4~42^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8dd2176a8e988e3744e863ac39647a6f59fa900;p=pandora-kernel.git tracing: Fix regression of trace_options file setting The latest change to allow trace options to be set on the command line also broke the trace_options file. The zeroing of the last byte of the option name that is echoed into the trace_option file was removed with the consolidation of some of the code. The compare between the option and what was written to the trace_options file fails because the string holding the data written doesn't terminate with a null character. A zero needs to be added to the end of the string copied from user space. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed