Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135507
b: refs/heads/master
c: 1d45209
h: refs/heads/master
i:
  135505: 22f3fc9
  135503: 0b3677e
v: v3
  • Loading branch information
Eric Dumazet authored and Patrick McHardy committed Mar 24, 2009
1 parent 0f20f50 commit e9a39d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd5b6ce6fd465eab90357711c8e8124dc3a31ff0
refs/heads/master: 1d45209d89e647e9f27e4afa1f47338df73bc112
5 changes: 3 additions & 2 deletions trunk/net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,16 +517,17 @@ EXPORT_SYMBOL_GPL(nf_conntrack_alloc);
static void nf_conntrack_free_rcu(struct rcu_head *head)
{
struct nf_conn *ct = container_of(head, struct nf_conn, rcu);
struct net *net = nf_ct_net(ct);

nf_ct_ext_free(ct);
kmem_cache_free(nf_conntrack_cachep, ct);
atomic_dec(&net->ct.count);
}

void nf_conntrack_free(struct nf_conn *ct)
{
struct net *net = nf_ct_net(ct);

nf_ct_ext_destroy(ct);
atomic_dec(&net->ct.count);
call_rcu(&ct->rcu, nf_conntrack_free_rcu);
}
EXPORT_SYMBOL_GPL(nf_conntrack_free);
Expand Down

0 comments on commit e9a39d9

Please sign in to comment.