Re: [PATCH] i40e: fix a memleak in i40e_init_recovery_mode

From: Simon Horman
Date: Mon Jan 22 2024 - 16:11:01 EST


On Tue, Jan 23, 2024 at 01:36:33AM +0800, Zhipeng Lu wrote:
> In i40e_init_recovery_mode, pf->vsi is allocated without free, causing
> a memleak. This patch adds deallocation operations for pf->vsi in each
> and every error-handling paths after pf->vsi's.
>
> Fixes: 4ff0ee1af016 ("i40e: Introduce recovery mode support")
> Signed-off-by: Zhipeng Lu <alexious@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>