Skip to content

Commit be99948

Browse files
edumazetgregkh
authored andcommitted
ipv6: fix typo in fib6_net_exit()
[ Upstream commit 32a805baf0fb70b6dbedefcd7249ac7f580f9e3b ] IPv6 FIB should use FIB6_TABLE_HASHSZ, not FIB_TABLE_HASHSZ. Fixes: ba1cc08d9488 ("ipv6: fix memory leak with multiple tables during netns destruction") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 70479ea commit be99948

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/ipv6/ip6_fib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ static void fib6_net_exit(struct net *net)
18961896
rt6_ifdown(net, NULL);
18971897
del_timer_sync(&net->ipv6.ip6_fib_timer);
18981898

1899-
for (i = 0; i < FIB_TABLE_HASHSZ; i++) {
1899+
for (i = 0; i < FIB6_TABLE_HASHSZ; i++) {
19001900
struct hlist_head *head = &net->ipv6.fib_table_hash[i];
19011901
struct hlist_node *tmp;
19021902
struct fib6_table *tb;

0 commit comments

Comments
 (0)