diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-02-05 23:34:04 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-02-10 18:07:42 +0100 |
commit | 10f129cb59cf6b4aee419ce4b1325fc532d975fb (patch) | |
tree | 3e1da8346794e91a61869d7dfe63a12cf36e8e37 /init/main.c | |
parent | bootconfig: Remove unneeded CONFIG_LIBXBC (diff) | |
download | linux-10f129cb59cf6b4aee419ce4b1325fc532d975fb.tar.xz linux-10f129cb59cf6b4aee419ce4b1325fc532d975fb.zip |
tracing/kprobe: Fix uninitialized variable bug
There is a potential execution path in which variable *ret* is returned
without being properly initialized, previously.
Fix this by initializing variable *ret* to 0.
Link: http://lkml.kernel.org/r/20200205223404.GA3379@embeddedor
Addresses-Coverity-ID: 1491142 ("Uninitialized scalar variable")
Fixes: 2a588dd1d5d6 ("tracing: Add kprobe event command generation functions")
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions