aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2020-05-21 15:11:44 +0300
committerDavid S. Miller <[email protected]>2020-05-22 16:08:14 -0700
commit4340f42f207eacb81e7a6b6bb1e3b6afad9a2e26 (patch)
tree605361b0e9f273e1eea08b80644a631665c27c34 /tools/perf/scripts/python/export-to-sqlite.py
parenta96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 (diff)
mlxsw: spectrum: Fix use-after-free of split/unsplit/type_set in case reload fails
In case of reload fail, the mlxsw_sp->ports contains a pointer to a freed memory (either by reload_down() or reload_up() error path). Fix this by initializing the pointer to NULL and checking it before dereferencing in split/unsplit/type_set callpaths. Fixes: 24cc68ad6c46 ("mlxsw: core: Add support for reload") Reported-by: Danielle Ratson <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions