Re: [PATCH net v2] net: ftgmac100: fix ring allocation unwind on open failure

patchwork-bot+netdevbpf
2026-04-01T02:50:21Z

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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.