diff options
author | Maher Sanalla <[email protected]> | 2023-01-17 14:54:36 +0200 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2023-02-07 16:29:55 -0800 |
commit | e3e01c1c15986f9531b854634eec8381e72cb605 (patch) | |
tree | ca60c34fa66016a622b9da3000b8a96d17a37bd1 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 1e985a8d887cd0b25541ba977db171be47cf575d (diff) |
net/mlx5: Fix memory leak in error flow of port set buffer
In the cited commit, shared buffer updates were added whenever
port buffer gets updated.
However, in case the shared buffer update fails, exiting early from
port_set_buffer() is performed without freeing previously-allocated memory.
Fix it by jumping to out label where memory is freed before returning
with error.
Fixes: a440030d8946 ("net/mlx5e: Update shared buffer along with device buffer changes")
Signed-off-by: Maher Sanalla <[email protected]>
Reviewed-by: Moshe Shemesh <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions