Re: [PATCH] netlink: Fix off-by-one error in netlink_proto_init()
From: Kuniyuki Iwashima
Date: Sun Nov 03 2024 - 12:31:57 EST
From: Markus Elfring <Markus.Elfring@xxxxxx>
Date: Sun, 3 Nov 2024 14:15:18 +0100
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Sun, 3 Nov 2024 14:01:26 +0100
>
> Hash tables should be properly destroyed after a rhashtable_init() call
> failed in this function implementation.
> The corresponding exception handling was incomplete because of
> a questionable condition check.
> 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