]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ftrace: Fix uninitialized variable in match_records()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jul 2017 07:35:57 +0000 (10:35 +0300)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 12 Jul 2017 13:48:31 +0000 (09:48 -0400)
commit2e028c4fe12907f226b8221815f16c2486ad3aa7
tree53592d82268bcb682d6d9d16c8d3dc11216dde3d
parent44925dfff05fd1a897992d278b15a6b6b55e79a7
ftrace: Fix uninitialized variable in match_records()

My static checker complains that if "func" is NULL then "clear_filter"
is uninitialized.  This seems like it could be true, although it's
possible something subtle is happening that I haven't seen.

    kernel/trace/ftrace.c:3844 match_records()
    error: uninitialized symbol 'clear_filter'.

Link: http://lkml.kernel.org/r/20170712073556.h6tkpjcdzjaozozs@mwanda
Cc: stable@vger.kernel.org
Fixes: f0a3b154bd7 ("ftrace: Clarify code for mod command")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c