Re: [PATCH net] bnge: use int for bnge_fix_rings_count() return value
| Newsgroups | org.kernel.vger.netdev |
|---|---|
| Message-ID | <178589281739.3863162.14624707410200751632.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: On Sat, 1 Aug 2026 03:09:20 -0700 you wrote: > bnge_fix_rings_count() returns 0 on success or a negative errno on failure > However, bnge_adjust_rings() stores its return value in a u16 variable, > causing negative error codes such as -ENOMEM to be converted to a large > positive value. > > Use an int for the return code variable so that error values are > preserved and propagated correctly. > > [...] Here is the summary with links: - [net] bnge: use int for bnge_fix_rings_count() return value https://git.kernel.org/netdev/net/c/2cbd8a4e5e09 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html