]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tcp: must free metrics at net dismantle
authorEric Dumazet <edumazet@google.com>
Thu, 9 Aug 2012 09:19:13 +0000 (11:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2012 09:31:37 +0000 (02:31 -0700)
commit36471012e2ae28ca3178f84d4687a2d88a36593e
tree0cb332bf74c90dcd3c4998c66367fd2c6c1c32e8
parentf5addb91d14e63beb6224a62fb81b6e610cee3bc
tcp: must free metrics at net dismantle

We currently leak all tcp metrics at struct net dismantle time.

tcp_net_metrics_exit() frees the hash table, we must first
iterate it to free all metrics.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c