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
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
2 matches
Mail list logo