Re: [PATCH 16/20] net/sfc: fix a memory leak in error handling

2022-03-02 Thread Andrew Rybchenko
On 2/22/22 21:18, Weiguo Li wrote: When efx_nic_get_board_info() failed then function return, the memory in 'id' is not released, this leads to a memory leak. Fixes: e86b48aa46d4 ("net/sfc: add HW switch ID helpers") Signed-off-by: Weiguo Li Reviewed-by: Andrew Rybchenko

[PATCH 16/20] net/sfc: fix a memory leak in error handling

2022-02-22 Thread Weiguo Li
When efx_nic_get_board_info() failed then function return, the memory in 'id' is not released, this leads to a memory leak. Fixes: e86b48aa46d4 ("net/sfc: add HW switch ID helpers") Signed-off-by: Weiguo Li --- drivers/net/sfc/sfc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff