Re: [PATCH net] bonding: initialize err for empty target lists
From: patchwork-bot+netdevbpf
Date: Tue Aug 18 2026 - 12:52:15 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 13 Aug 2026 23:31:26 +0800 you wrote:
> Empty NLA_NESTED attributes are valid, and bonding uses them to clear
> the ARP and NS target lists. When either target attribute is empty,
> nla_for_each_nested() does not execute, so err retains an uninitialized
> value before it is tested. The request can consequently return an
> unpredictable error after clearing the targets.
>
> Initialize err to zero so an empty target list completes successfully.
> Non-empty lists still propagate errors from __bond_opt_set() unchanged.
>
> [...]
Here is the summary with links:
- [net] bonding: initialize err for empty target lists
https://git.kernel.org/netdev/net/c/8ccc9bf9afee
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html