Files
linux/net/ipv4
Minhong He c0fd47726c ipv4: nexthop: handle errors in nexthop_init()
nexthop_init() ignores errors from register_pernet_subsys() and
register_netdevice_notifier(), so a partial initialization can appear
successful.

Check those steps and unwind prior registrations on failure.

Do not check rtnl_register_many(): for built-in code it panics on
failure, so the call cannot return an error to nexthop_init().

Cc: stable+noautosel@kernel.org # untested fix to unlikely error path
Signed-off-by: Minhong He <heminhong@kylinos.cn>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260731025249.80026-1-heminhong@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-04 18:33:17 -07:00
..
2026-04-12 12:33:33 -07:00
2026-06-04 12:22:35 +02:00
2026-04-30 09:38:56 +02:00
2026-03-13 18:57:44 -07:00
2026-06-12 16:43:11 -07:00
2026-07-22 13:49:03 +02:00