Re: [PATCH net v2] can: esd_usb: kill anchored URBs before freeing netdevs
From: patchwork-bot+netdevbpf
Date: Fri Jul 17 2026 - 05:52:53 EST
Hello:
This patch was applied to netdev/net.git (main)
by Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>:
On Thu, 9 Jul 2026 16:41:59 +0000 you wrote:
> esd_usb_disconnect() frees each CAN netdev with free_candev() inside
> its per-netdev loop and only calls unlink_all_urbs(dev) afterwards.
> The per-netdev private data (struct esd_usb_net_priv) is embedded in
> the net_device allocation returned by alloc_candev(), so once
> free_candev() has run, dev->nets[i] points to freed memory.
> unlink_all_urbs() then dereferences the freed dev->nets[i] to kill the
> per-netdev TX anchor (usb_kill_anchored_urbs(&priv->tx_submitted)),
> clear active_tx_jobs, and reset priv->tx_contexts[].
>
> [...]
Here is the summary with links:
- [net,v2] can: esd_usb: kill anchored URBs before freeing netdevs
https://git.kernel.org/netdev/net/c/c43122fef328
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html