Thread (2 messages) 2 messages, 2 authors, 2026-03-04

Re: [PATCH net-next v4] net: core: failover: enforce mandatory ops and clean up redundant checks

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-03-04 02:10:06
Also in: kernel-janitors, lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Mon,  2 Mar 2026 11:43:17 +0500 you wrote:
The failover framework requires 'ops' to be functional. Currently,
failover_register() allows an instance to be registered with NULL
ops, which leads to inconsistent NULL checks and potential NULL
pointer dereferences in the slave registration paths.

Harden the entry point by requiring non-NULL ops in
failover_register(). This ensures the 'fops' pointer is guaranteed
to be valid for any successfully registered failover instance.
Consequently, remove the now redundant NULL checks for 'fops'
throughout the module to simplify the logic.

[...]
Here is the summary with links:
  - [net-next,v4] net: core: failover: enforce mandatory ops and clean up redundant checks
    https://git.kernel.org/netdev/net-next/c/d6ca199568c5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help