On Thu, Nov 05, 2026 at 09:47:19AM +0000, Anurag Mandal wrote:
> ice_dcf_init_parent_adapter() allocates a dummy main VSI
> first, but none of its error paths free it.
>
> When ice_flow_init() fails, the error path also skips
> ice_flow_uninit(), so the DDP parser and any flow engine
> state set up before the failure are not released.
>
> Free the main VSI on all error paths, and call
> ice_flow_uninit() when flow init fails.
>
> Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF")
> Fixes: 829c3106812d ("net/ice: enable switch flow on DCF")
> Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ice/ice_dcf_parent.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>