> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of 
> Maciej Fijalkowski
> Sent: Wednesday, July 1, 2026 5:45 AM
> To: [email protected]
> Cc: [email protected]; Karlsson, Magnus <[email protected]>; 
> [email protected]; [email protected]; [email protected]; Kitszel, Przemyslaw 
> <[email protected]>; Keller, Jacob E <[email protected]>; 
> Fijalkowski, Maciej <[email protected]>; Sashiko AI Review >  
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH v5 net 6/7] i40e: do not expose netdev too 
> early
>
> i40e_vsi_setup() registers the netdev before rings and q_vectors are fully
> allocated and mapped. Once register_netdev() returns, userspace can reach
> netdev callbacks such as ndo_open(), so the VSI backing state must already
> be ready.
>
> Move register_netdev() to the end of the setup path, after ring/q_vector
> allocation, ring mapping and RSS configuration. Keep freeing an allocated
> but not registered netdev on the error path.
>
> Fixes: 41c445ff0f48 ("i40e: main driver core")
> Reported-by: Sashiko AI Review <[email protected]>
> Signed-off-by: Maciej Fijalkowski <[email protected]>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 29 ++++++++++++---------
>  1 file changed, 17 insertions(+), 12 deletions(-)

Tested-by: Sunitha Mekala <[email protected]> (A Contingent worker at 
Intel)

Reply via email to