Re: [PATCH] netlink: Fix off-by-one error in netlink_proto_init()
From: Kuniyuki Iwashima <hidden>
Date: 2024-11-03 17:31:43
Also in:
kernel-janitors, lkml
From: Kuniyuki Iwashima <hidden>
Date: 2024-11-03 17:31:43
Also in:
kernel-janitors, lkml
From: Markus Elfring <redacted> Date: Sun, 3 Nov 2024 14:15:18 +0100
From: Markus Elfring <redacted> 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