]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 10:37:45 +0000 (12:37 +0200)
commitd75345033978df136477c796d8e0aeab6fd42a3a
tree01ef1645a00ce4cfa930544450297d68fe63e669
parent37bf6c6b2e0c18843d5ecd04ea32e70982ecb735
ftrace: Fix uninitialized variable in match_records()

BugLink: http://bugs.launchpad.net/bugs/1707233
commit 2e028c4fe12907f226b8221815f16c2486ad3aa7 upstream.

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
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
kernel/trace/ftrace.c