public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation
@ 2025-04-15 12:41 Henry Martin
  2025-04-15 12:41 ` [PATCH v5 1/2] net/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table() Henry Martin
  2025-04-15 12:41 ` [PATCH v5 2/2] net/mlx5: Fix memory leak in error path of ttc creation Henry Martin
  0 siblings, 2 replies; 7+ messages in thread
From: Henry Martin @ 2025-04-15 12:41 UTC (permalink / raw)
  To: saeedm, leon, tariqt, andrew+netdev, davem, edumazet, kuba,
	pabeni
  Cc: netdev, linux-rdma, linux-kernel, bsdhenrymartin, amirtz, ayal

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(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-16  8:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 12:41 [PATCH v5 0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation Henry Martin
2025-04-15 12:41 ` [PATCH v5 1/2] net/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table() Henry Martin
2025-04-15 13:45   ` Mark Bloch
2025-04-16  8:43     ` Tariq Toukan
2025-04-15 12:41 ` [PATCH v5 2/2] net/mlx5: Fix memory leak in error path of ttc creation Henry Martin
2025-04-15 13:46   ` Mark Bloch
2025-04-16  6:50     ` henry martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox