Re: netlink: Fix off-by-one error in netlink_proto_init()

From: Markus Elfring
Date: Mon Nov 04 2024 - 02:39:22 EST



>> Thus use the comparison operator “>=” instead for the affected while loop.
>
> This patch is already applied to net-next.
> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=bc74d329ceba

Thanks for your reminder on the commit bc74d329ceba23f998ead4f716266da5afe319f7
("netlink: Remove the dead code in netlink_proto_init()") from 2024-10-31
for another contribution by Jinjie Ruan (also according to your suggestion).

See also:
https://lore.kernel.org/linux-kernel/20241028182421.6692-1-kuniyu@xxxxxxxxxx/
https://lore.kernel.org/linux-kernel/20241030012147.357400-1-ruanjinjie@xxxxxxxxxx/

Regards,
Markus