Re: [PATCH net v2] net: dsa: mxl862xx: disable the stats poll on teardown
From: patchwork-bot+netdevbpf
Date: Mon Sep 14 2026 - 22:21:20 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 10 Sep 2026 14:13:15 +0100 you wrote:
> mxl862xx_setup() arms the stats poll before mxl862xx_setup_mdio(), and
> nothing stops it until dsa_register_switch() has returned an error to
> mxl862xx_probe(). DSA frees the dsa_port list before it returns, so a
> poll that fires once .setup or a later step of dsa_tree_setup() has
> failed walks freed ports. On shutdown the user ports stay registered,
> and the WORK_STOPPED flag test in mxl862xx_get_stats64() is not atomic
> with the cancel in mxl862xx_shutdown(), so a re-arm that read the flag
> before it was set queues the poll after cancel_delayed_work_sync() has
> returned.
>
> [...]
Here is the summary with links:
- [net,v2] net: dsa: mxl862xx: disable the stats poll on teardown
https://git.kernel.org/netdev/net/c/9e92ad4630f5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html