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

Henry Martin posted 2 patches 8 months ago
.../ethernet/mellanox/mlx5/core/lib/fs_ttc.c  | 26 +++++++++++++------
1 file changed, 18 insertions(+), 8 deletions(-)
[PATCH v7 0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation
Posted by Henry Martin 8 months ago
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(-)

-- 
2.34.1
Re: [PATCH v7 0/2] net/mlx5: Fix NULL dereference and memory leak in ttc_table creation
Posted by Markus Elfring 7 months, 3 weeks ago
> This patch series addresses two issues in …

Did you overlook the addition of patch version descriptions once more?
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.15-rc3#n310

Regards,
Markus