[PATCH] net: stmmac: stop DMA before freeing descriptors on open
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Mon Aug 31 17:20:14 PDT 2026
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:
On Thu, 27 Aug 2026 10:54:15 +0800 you wrote:
> In __stmmac_open() and stmmac_xdp_open(), the DMA engine is started
> before stmmac_request_irq() is called. If the IRQ request fails, the
> clean-up paths free the DMA descriptor rings via dma_free_coherent()
> without stopping the DMA engine first.
>
> With the DMA engine still running, hardware may continue to access the
> descriptor ring memory after it has been freed. Add stmmac_stop_all_dma()
> to both error paths, matching the teardown order in __stmmac_release().
>
> [...]
Here is the summary with links:
- net: stmmac: stop DMA before freeing descriptors on open
https://git.kernel.org/netdev/net-next/c/25c1f6111034
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list