Re: [PATCH net v2] net: ftgmac100: fix ring allocation unwind on open failure
From: patchwork-bot+netdevbpf
Date: Tue Mar 31 2026 - 22:55:46 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 29 Mar 2026 00:32:57 +0800 you wrote:
> ftgmac100_alloc_rings() allocates rx_skbs, tx_skbs, rxdes, txdes, and
> rx_scratch in stages. On intermediate failures it returned -ENOMEM
> directly, leaking resources allocated earlier in the function.
>
> Rework the failure path to use staged local unwind labels and free
> allocated resources in reverse order before returning -ENOMEM. This
> matches common netdev allocation cleanup style.
>
> [...]
Here is the summary with links:
- [net,v2] net: ftgmac100: fix ring allocation unwind on open failure
https://git.kernel.org/netdev/net/c/c0fd0fe745f5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html