[PATCH 16/20] net/sfc: fix a memory leak in error handling
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Thu Mar 3 08:39:25 CET 2022
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 <liwg06 at foxmail.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
More information about the dev
mailing list