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>