net/mlx5: Fix NULL dereference and memory leak in ttc_table creation
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest2 patches 2 repliesApplied 2/2
- v62 patches 6 repliesSuperseded
- v52 patches 4 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 1 patch | 4 replies | Superseded | |
| v3 | 1 patch | 2 replies | Superseded | |
| v2 | 2 patches | 1 reply | Superseded | |
| v1 | 1 patch | 0 replies | Superseded |
Patches in v7 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table()drivers/ | +10 | 1 reply | Applied |
| 2/2 | net/mlx5: Move ttc allocation after switch case to prevent leaksdrivers/ | +8 | 0 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Mark Bloch | Michal Swiatkowski |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v7 0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation
This patch series addresses two issues in the mlx5_create_inner_ttc_table() and mlx5_create_ttc_table() functions:
1. A potential NULL pointer dereference if mlx5_get_flow_namespace() returns NULL.
2. A memory leak in the error path when ttc_type is invalid (default:
switch case).
Henry Martin (2):
net/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table() net/mlx5: Move ttc allocation after switch case to prevent leaks
.../ethernet/mellanox/mlx5/core/lib/fs_ttc.c | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1