Re: [PATCH] net: spacemit: clear TX descriptor on fragment mapping failure
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 07:19:56 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Sun, 20 Sep 2026 00:19:37 +0500 you wrote:
> emac_tx_mem_map() writes TX_DESC_0_OWN into the ring descriptor for
> every slot beyond old_head as soon as that slot's memset()'d local
> copy is committed with "*tx_desc_addr = tx_desc", i.e. before the
> buffers for that slot have necessarily all been mapped successfully.
> If emac_tx_map_frag() then fails on a later fragment, the err_free_skb
> path calls emac_free_tx_buf() to unmap and drop the skb, but leaves
> the already-written descriptor memory untouched, and tx_ring->head is
> never advanced past old_head (the "tx_ring->head = head" store is
> skipped by the goto).
>
> [...]
Here is the summary with links:
- net: spacemit: clear TX descriptor on fragment mapping failure
https://git.kernel.org/netdev/net/c/2d14720beb58
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html