On Tue, Oct 27, 2026 at 10:51:34AM +0000, Anurag Mandal wrote:
> When ice_send_driver_ver(), ice_flow_init() or ice_reset_fxp_resource()
> fails in ice_dev_init(), the error path skips releasing the main VSI
> created by ice_pf_setup(). This leaks the VSI structure, its MAC
> filters and the VSI in hardware.
>
> Release the main VSI on these error paths.
>
> Fixes: 9481b0902efe ("net/ice: send driver version to firmware")
> Fixes: 96b25c496aad ("net/ice: fix memzone leak after device init failure")
Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH 7/7] net/ice: fix ACL profile segment lea... Bruce Richardson
- [PATCH 3/7] net/ice: fix DDP filename leak Anurag Mandal
- Re: [PATCH 3/7] net/ice: fix DDP filename leak Bruce Richardson
- [PATCH 5/7] net/ice: fix MAC and VLAN filter leak on VSI ... Anurag Mandal
- Re: [PATCH 5/7] net/ice: fix MAC and VLAN filter lea... Bruce Richardson
- Re: [PATCH 0/7] net/ice: fix memory leaks Bruce Richardson
- [PATCH 1/7] net/ice: fix DDP package double free on init ... Anurag Mandal
- Re: [PATCH 1/7] net/ice: fix DDP package double free... Bruce Richardson
- Re: [PATCH 1/7] net/ice: fix DDP package double ... Bruce Richardson
- [PATCH 4/7] net/ice: fix main VSI leak on init failure Anurag Mandal
- Re: [PATCH 4/7] net/ice: fix main VSI leak on init f... Bruce Richardson

