Re: [PATCH net] net: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 07:50:58 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Fri, 18 Sep 2026 21:53:52 +0200 you wrote:
> Fix 3 leaks in macb_alloc() error paths:
> - Tx buffer allocated but crossing a 4G boundary: Tx leaked.
> - Rx buffer allocation fails: Tx leaked.
> - Rx buffer allocated but crossing a 4G boundary: Tx & Rx leaked.
>
> This is because our error handling calls macb_free(bp) which in turn
> frees the buffers stored in bp->queues[0], but nothing has been stored
> in there. Fix by storing allocated buffers into bp->queues[0] ASAP.
>
> [...]
Here is the summary with links:
- [net] net: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths
https://git.kernel.org/netdev/net/c/23d42b9a3bcd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html