Subject: Re: [PATCH net] net: fs_enet: add missing kfree in _remove

From: Jakub Kicinski <[email-masked]>
Date: Tue, 24 Feb 2026 17:59:28 -0800

On Tue, 24 Feb 2026 14:24:53 -0800 Rosen Penev wrote:
> > Le 24/02/2026 à 02:55, Rosen Penev a écrit :  
> > > The kfree is present in _probe on failure but not in remove.  
> >
> > Which kfree ? Which structure ?  
> probe has
> 
> out_free_bd:
>         fep->ops->free_bd(ndev);
> out_cleanup_data:
>         fep->ops->cleanup_data(ndev);
> out_phylink:
>         phylink_destroy(fep->phylink);
> out_free_dev:
>         free_netdev(ndev);
> out_free_fpi:
>         kfree(fpi);

This says fpi, not fep. Which is what Christophe was telling you.

Please add a Fixes tag when you send v2