Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236584
b: refs/heads/master
c: 2c2bf08
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy committed Nov 16, 2010
1 parent f73c180 commit fc09f95
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 8f1b03a4c18e8f3f0801447b62330faa8ed3bb37
refs/heads/master: 2c2bf086146c7e4ff526247e9fd1db23dada88c3
4 changes: 2 additions & 2 deletions trunk/net/netfilter/nf_conntrack_expect.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ static void nf_ct_expect_insert(struct nf_conntrack_expect *exp)
const struct nf_conntrack_expect_policy *p;
unsigned int h = nf_ct_expect_dst_hash(&exp->tuple);

atomic_inc(&exp->use);
/* two references : one for hash insert, one for the timer */
atomic_add(2, &exp->use);

if (master_help) {
hlist_add_head(&exp->lnode, &master_help->expectations);
Expand All @@ -345,7 +346,6 @@ static void nf_ct_expect_insert(struct nf_conntrack_expect *exp)
}
add_timer(&exp->timeout);

atomic_inc(&exp->use);
NF_CT_STAT_INC(net, expect_create);
}

Expand Down

0 comments on commit fc09f95

Please sign in to comment.