mbox series

[v5,0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation

Message ID 20250415124128.59198-1-bsdhenrymartin@gmail.com (mailing list archive)
Headers show
Series net/mlx5: Fix NULL dereference and memory leak in ttc_table creation | expand

Message

henry martin April 15, 2025, 12:41 p.m. UTC
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: Fix memory leak in error path of ttc creation

 drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)