Re: [PATCH v4] net: bgmac: fix TX DMA unmapping and slot cleanup
From: patchwork-bot+netdevbpf
Date: Thu Oct 29 2026 - 12:26:59 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 28 Oct 2026 09:48:39 -0700 you wrote:
> When mapping a fragment fails, bgmac_dma_tx_add() unwinds with the
> wrong slots. It passes the failed fragment's slot->dma_addr, which
> holds the mapping error, to dma_unmap_single() for the head. The
> fragment loop indexes from ring->end instead of ring->end + 1, so it
> unmaps the head a second time as a page and leaves the last mapped
> fragment mapped. None of the affected slots get their dma_addr cleared
> either, which includes the head slot when mapping the head fails.
>
> [...]
Here is the summary with links:
- [v4] net: bgmac: fix TX DMA unmapping and slot cleanup
https://git.kernel.org/netdev/net/c/4f45e97b3aac
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html