]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8eb0fcaeb750bc17b658621f62f4761310c39fb5
treecb6b25e2586657ecd8adb61deae7a3ebc00f8247
parentb7a5e0a73fc4174b1b8f0dc2b818ce294d593f08
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