summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAmit Cohen <amitc@mellanox.com>2019-11-24 10:48:03 +0300
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-11-25 05:34:46 +0300
commited43cff065d7ca2ffa60a7a1ea62be4a574529f9 (patch)
treec5515fbcf4556919a329c21b4813fce0dae43650 /tools/perf/util/scripting-engines/trace-event-python.c
parentc5731cc5ebcbfdb0b34c7ce29d488c52d8af957b (diff)
downloadlinux-ed43cff065d7ca2ffa60a7a1ea62be4a574529f9.tar.xz
mlxsw: spectrum_router: Fix use of uninitialized adjacency index
When mlxsw_sp_adj_discard_write() is called for the first time, the value stored in 'mlxsw_sp->router->adj_discard_index' is invalid, as indicated by 'mlxsw_sp->router->adj_discard_index_valid' being set to 'false'. In this case, we should not use the value initially stored in 'mlxsw_sp->router->adj_discard_index' (0) and instead use the value allocated later in the function. Fixes: 983db6198f0d ("mlxsw: spectrum_router: Allocate discard adjacency entry when needed") Signed-off-by: Amit Cohen <amitc@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions