Re: [PATCH net v2] net: mctp i3c: clean up notifier and buses if driver register fails

From: patchwork-bot+netdevbpf

Date: Tue Jul 21 2026 - 20:39:05 EST


Hello:

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

On Wed, 15 Jul 2026 16:25:17 +0900 you wrote:
> mctp_i3c_mod_init() registers the I3C bus notifier and then walks the
> existing buses with i3c_for_each_bus_locked(mctp_i3c_bus_add_new, NULL)
> before registering the I3C device driver. If i3c_driver_register()
> fails, the function returns the error directly, leaving the notifier
> registered and every mctp_i3c_bus object created for the existing buses
> allocated. The notifier is left pointing into the module that failed to
> load and the bus list is leaked.
>
> [...]

Here is the summary with links:
- [net,v2] net: mctp i3c: clean up notifier and buses if driver register fails
https://git.kernel.org/netdev/net/c/03d1057305ef

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