Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321580
b: refs/heads/master
c: 3647101
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 9, 2012
1 parent 1ff2727 commit 5de1bed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5addb91d14e63beb6224a62fb81b6e610cee3bc
refs/heads/master: 36471012e2ae28ca3178f84d4687a2d88a36593e
12 changes: 12 additions & 0 deletions trunk/net/ipv4/tcp_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,18 @@ static int __net_init tcp_net_metrics_init(struct net *net)

static void __net_exit tcp_net_metrics_exit(struct net *net)
{
unsigned int i;

for (i = 0; i < (1U << net->ipv4.tcp_metrics_hash_log) ; i++) {
struct tcp_metrics_block *tm, *next;

tm = rcu_dereference_protected(net->ipv4.tcp_metrics_hash[i].chain, 1);
while (tm) {
next = rcu_dereference_protected(tm->tcpm_next, 1);
kfree(tm);
tm = next;
}
}
kfree(net->ipv4.tcp_metrics_hash);
}

Expand Down

0 comments on commit 5de1bed

Please sign in to comment.