tracing: Clear parser->idx if only spaces are read
authorChangbin Du <changbin.du@intel.com>
Tue, 16 Jan 2018 09:02:29 +0000 (17:02 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 23 Jan 2018 20:57:28 +0000 (15:57 -0500)
commit76638d96502744b0d593f2386b75ae5a017c13bb
treecb6b25e2586657ecd8adb61deae7a3ebc00f8247
parent921a7acd85ebbab1b3cd99828e6842fd3e78df24
tracing: Clear parser->idx if only spaces are read

If only spaces were read while parsing the next string, then parser->idx should be
cleared in order to make trace_parser_loaded() return false.

Link: http://lkml.kernel.org/r/1516093350-12045-3-git-send-email-changbin.du@intel.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c