diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-03-28 13:48:15 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-04-06 14:56:50 +0200 |
commit | b28d7b2dc27f0eef1ae608b49d6860f2463910f1 (patch) | |
tree | 3d39a6a0f1f4c592e8a201206c5ee0d805a7ac0f /block/blk-mq-debugfs.h | |
parent | tracing: Make sure variable string fields are NULL-terminated (diff) | |
download | linux-b28d7b2dc27f0eef1ae608b49d6860f2463910f1.tar.xz linux-b28d7b2dc27f0eef1ae608b49d6860f2463910f1.zip |
tracing: Uninitialized variable in create_tracing_map_fields()
Smatch complains that idx can be used uninitialized when we check if
(idx < 0). It has to be the first iteration through the loop and the
HIST_FIELD_FL_STACKTRACE bit has to be clear and the HIST_FIELD_FL_VAR
bit has to be set to reach the bug.
Link: http://lkml.kernel.org/r/20180328114815.GC29050@mwanda
Fixes: 30350d65ac56 ("tracing: Add variable support to hist triggers")
Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'block/blk-mq-debugfs.h')
0 files changed, 0 insertions, 0 deletions