]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: probeevent: Fix uninitialized used of offset in parse args
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 12 Oct 2018 16:50:22 +0000 (12:50 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 12 Oct 2018 16:50:22 +0000 (12:50 -0400)
commit2856142f931e130d2fc47aabd10e93003f04d49c
treef104e10825409941b84e600b89fd3c9a0c70a730
parent28ffd56aedb026e7f7a813d391a793f89099c726
tracing: probeevent: Fix uninitialized used of offset in parse args

Dan's smatch utility found an uninitialized use of offset in a path in
parse_probe_args(). Unless an offset is specifically specified for commands
that allow them, it should default to zero.

Link: http://lkml.kernel.org/r/20181012134246.5doqaobxunlqqs53@mwanda
Fixes: 296d452ac5e0 ("tracing: probeevent: Introduce new argument fetching code")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> (smatch)
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_probe.c