[PATCH 2/8] net/ice: fix DCF parent adapter init error path

Bruce Richardson bruce.richardson at intel.com
Fri Nov 6 12:54:07 CET 2026


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: stable at dpdk.org
> 
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
>  drivers/net/intel/ice/ice_dcf_parent.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the stable mailing list