diff options
author | Amit Cohen <[email protected]> | 2019-11-24 09:48:03 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2019-11-24 18:34:46 -0800 |
commit | ed43cff065d7ca2ffa60a7a1ea62be4a574529f9 (patch) | |
tree | c5515fbcf4556919a329c21b4813fce0dae43650 /tools/perf/scripts/python/stackcollapse.py | |
parent | c5731cc5ebcbfdb0b34c7ce29d488c52d8af957b (diff) |
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 <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions