[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250417080422.6a22ff04@kernel.org>
Date: Thu, 17 Apr 2025 08:04:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Mark Bloch <mbloch@...dia.com>
Cc: Henry Martin <bsdhenrymartin@...il.com>, saeedm@...dia.com,
leon@...nel.org, tariqt@...dia.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
michal.swiatkowski@...ux.intel.com, amirtz@...dia.com,
netdev@...r.kernel.org, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 2/2] net/mlx5: Move ttc allocation after switch case
to prevent leaks
On Wed, 16 Apr 2025 15:02:13 +0300 Mark Bloch wrote:
> On 16/04/2025 12:22, Henry Martin wrote:
> > Relocate the memory allocation for ttc table after the switch statement
> > that validates params->ns_type in both mlx5_create_inner_ttc_table() and
> > mlx5_create_ttc_table(). This ensures memory is only allocated after
> > confirming valid input, eliminating potential memory leaks when invalid
> > ns_type cases occur.
>
> Reviewed-by: Mark Bloch <mbloch@...dia.com>
A bit hard to see from the context but I'm guessing this fixes
a memory leak? We need a Fixes tag..
reminder: please trim your replies
--
pw-bot: cr
Powered by blists - more mailing lists