Skip to content
  • Thomas Gleixner's avatar
    tracing: Fix wrong usage of strstrip in trace_ksyms · d954fbf0
    Thomas Gleixner authored
    
    
    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: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    d954fbf0