diff options
| author | Jiri Pirko <[email protected]> | 2020-05-21 12:11:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-05-22 23:08:14 +0000 |
| commit | 4340f42f207eacb81e7a6b6bb1e3b6afad9a2e26 (patch) | |
| tree | 605361b0e9f273e1eea08b80644a631665c27c34 /tools/perf/scripts/python/futex-contention.py | |
| parent | net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x (diff) | |
| download | kernel-4340f42f207eacb81e7a6b6bb1e3b6afad9a2e26.tar.gz kernel-4340f42f207eacb81e7a6b6bb1e3b6afad9a2e26.zip | |
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/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
