Re: [PATCH net v4] phonet: check register_netdevice_notifier() error in phonet_device_init()

From: patchwork-bot+netdevbpf

Date: Thu Jul 23 2026 - 13:53:45 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 21 Jul 2026 17:39:56 +0800 you wrote:
> phonet_device_init() registers a netdevice notifier before calling
> phonet_netlink_register(), but does not check whether notifier
> registration succeeded. On failure, netlink setup still proceeds and
> init may return success without the notifier in place.
>
> Also, the existing phonet_netlink_register() failure path called
> phonet_device_exit(), which runs rtnl_unregister_all() even though
> rtnl_register_many() already unwound any partial registration. Calling
> the full exit helper on a partial init is not correct.
>
> [...]

Here is the summary with links:
- [net,v4] phonet: check register_netdevice_notifier() error in phonet_device_init()
https://git.kernel.org/netdev/net/c/d1ff66b66151

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