Re: [PATCH net] bonding: initialize err for empty target lists
| Newsgroups | org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178707181295.2177226.1948973853593102909.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: 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