Re: [PATCH net] dpaa2-switch: fix port cleanup on probe errors
From: patchwork-bot+netdevbpf
Date: Thu Nov 05 2026 - 09:18:34 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Mon, 02 Nov 2026 07:13:18 +0000 you wrote:
> dpaa2_switch_probe() reuses i while probing ports, adding NAPI
> instances, registering netdevs, and unwinding failures. Consequently,
> the value reaching the port removal loop does not always represent the
> number of successfully probed ports.
>
> If IRQ setup fails, i is left equal to DPAA2_SWITCH_RX_NUM_FQS. A
> switch with one interface then causes the unwind path to access
> ports[1] out of bounds, while a switch with more than two interfaces
> leaks all ports after ports[1].
>
> [...]
Here is the summary with links:
- [net] dpaa2-switch: fix port cleanup on probe errors
https://git.kernel.org/netdev/net-next/c/0822d2fe3826
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html