Re: [PATCH net 2/2] net/mlx5e: fix memory leak in mlx5e_ptp_open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 Jun, 2023 10:46:42 +0800 Zhengchao Shao <shaozhengchao@xxxxxxxxxx> 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.

Reviewed-by: Rahul Rameshbabu <rrameshbabu@xxxxxxxxxx>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux