[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d3f3bf6-3c3f-5f30-055e-22ace6019f73@nvidia.com>
Date: Thu, 29 Jun 2023 09:08:00 +0300
From: Gal Pressman <gal@...dia.com>
To: Zhengchao Shao <shaozhengchao@...wei.com>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
richardcochran@...il.com
Cc: saeedm@...dia.com, leon@...nel.org, lkayal@...dia.com,
tariqt@...dia.com, rrameshbabu@...dia.com, vadfed@...a.com,
ayal@...dia.com, eranbe@...dia.com, weiyongjun1@...wei.com,
yuehaibing@...wei.com
Subject: Re: [PATCH net 2/2] net/mlx5e: fix memory leak in mlx5e_ptp_open
On 29/06/2023 5:46, Zhengchao Shao wrote:
> When kvzalloc_node or kvzalloc failed in mlx5e_ptp_open, the memory
> pointed by "c" or "cparams" is not freed, which can lead to a memory
> leak. Fix by freeing the array in the error path.
>
> Fixes: 145e5637d941 ("net/mlx5e: Add TX PTP port object support")
> Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
Thanks Zhengchao!
Reviewed-by: Gal Pressman <gal@...dia.com>
Powered by blists - more mailing lists