]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Initialize val to zero in parse_entry of inject code
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Jan 2020 00:04:57 +0000 (19:04 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Jan 2020 00:04:57 +0000 (19:04 -0500)
commit382fa7f710a91103f14b3639d6f54ffd32a8dc67
treebd14d3130c336c44062d4c013c0d7aef766f9cd2
parent6541ef8b6ae0e88ea084a953739461839690c607
tracing: Initialize val to zero in parse_entry of inject code

gcc produces a variable may be uninitialized warning for "val" in
parse_entry(). This is really a false positive, but the code is subtle
enough to just initialize val to zero and it's not a fast path to worry
about it.

Marked for stable to remove the warning in the stable trees as well.

Cc: stable@vger.kernel.org
Fixes: aa556dc8c2812 ("tracing: Introduce trace event injection")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_inject.c