]> git.karo-electronics.de Git - linux-beck.git/commit
tracing: Fix wrong usage of strstrip in trace_ksyms
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2009 22:46:52 +0000 (23:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2009 23:01:36 +0000 (00:01 +0100)
commitd954fbf0ff6b5fdfb32350e85a2f15d3db976506
tree3814d5878ed43b7f3cd36bdfe08053bb3d5fc0d9
parent788d70dce0184eccc249ac6f05aa38b385b7497c
tracing: Fix wrong usage of strstrip in trace_ksyms

strstrip returns a pointer to the first non space character, but the
code in parse_ksym_trace_str() ignores that.

strstrip is now must_check and therefor we get the correct warning:
kernel/trace/trace_ksym.c:294: warning:
ignoring return value of ‘strstrip’, declared with attribute warn_unused_result

We are really not interested in leading whitespace here.

Fix that and cleanup the dozen kfree() exit pathes.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_ksym.c