[PATCH v5 net-next 04/14] net: enetc: add MAC filtering for i.MX95 ENETC PF
Wei Fang
wei.fang at nxp.com
Tue Apr 15 22:16:15 PDT 2025
> -----Original Message-----
> From: Jakub Kicinski <kuba at kernel.org>
> Sent: 2025年4月16日 11:43
> To: Wei Fang <wei.fang at nxp.com>
> Cc: Claudiu Manoil <claudiu.manoil at nxp.com>; Vladimir Oltean
> <vladimir.oltean at nxp.com>; Clark Wang <xiaoning.wang at nxp.com>;
> andrew+netdev at lunn.ch; davem at davemloft.net; edumazet at google.com;
> pabeni at redhat.com; christophe.leroy at csgroup.eu; netdev at vger.kernel.org;
> linux-kernel at vger.kernel.org; imx at lists.linux.dev; linuxppc-dev at lists.ozlabs.org;
> linux-arm-kernel at lists.infradead.org
> Subject: Re: [PATCH v5 net-next 04/14] net: enetc: add MAC filtering for i.MX95
> ENETC PF
>
> On Fri, 11 Apr 2025 17:57:42 +0800 Wei Fang wrote:
> > enetc4_pf_netdev_destroy(si);
> > enetc4_pf_free(pf);
> > + destroy_workqueue(si->workqueue);
>
> I think that you need to flush or cancel the work after unregistering
> the netdev but before freeing it? The work may access netdev after its
> freed.
Yes, you are right, I will improve it. thanks.
More information about the linux-arm-kernel
mailing list