mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ipv6: fix typo in fib6_net_exit()
[ Upstream commit32a805baf0] IPv6 FIB should use FIB6_TABLE_HASHSZ, not FIB_TABLE_HASHSZ. Fixes:ba1cc08d94("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c9335db792
commit
bf8ed95d2c
@@ -1904,7 +1904,7 @@ static void fib6_net_exit(struct net *net)
|
||||
rt6_ifdown(net, NULL);
|
||||
del_timer_sync(&net->ipv6.ip6_fib_timer);
|
||||
|
||||
for (i = 0; i < FIB_TABLE_HASHSZ; i++) {
|
||||
for (i = 0; i < FIB6_TABLE_HASHSZ; i++) {
|
||||
struct hlist_head *head = &net->ipv6.fib_table_hash[i];
|
||||
struct hlist_node *tmp;
|
||||
struct fib6_table *tb;
|
||||
|
||||
Reference in New Issue
Block a user