diff options
author | Yevgeny Kliteynik <[email protected]> | 2024-09-19 12:17:59 +0300 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2024-09-25 13:15:45 -0700 |
commit | d8c561741ef83980114b3f7f95ffac54600f3f16 (patch) | |
tree | deeddd94316bbc2e281daaaab4828927e52ba23b /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 19da17010a55924f2b5540b0f61652cc5781af85 (diff) |
net/mlx5: HWS, fixed double-free in error flow of creating SQ
When SQ creation fails, call the appropriate mlx5_core destroy function.
This fixes the following smatch warnings:
divers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_send.c:739
hws_send_ring_open_sq() warn: 'sq->dep_wqe' double freed
hws_send_ring_open_sq() warn: 'sq->wq_ctrl.buf.frags' double freed
hws_send_ring_open_sq() warn: 'sq->wr_priv' double freed
Fixes: 2ca62599aa0b ("net/mlx5: HWS, added send engine and context handling")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Yevgeny Kliteynik <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions