Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236575
b: refs/heads/master
c: 3bfd45f
h: refs/heads/master
i:
  236573: de274bf
  236571: 90f4fb2
  236567: 9175483
  236559: 3ac9d73
  236543: a1a39cb
v: v3
  • Loading branch information
Eric Dumazet authored and Patrick McHardy committed Nov 16, 2010
1 parent 91a5855 commit de4a56c
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: c5d277d29ad1ae9add8d6984025ccd2e835971ce
refs/heads/master: 3bfd45f93c8bca7a5dc955235ff083602d95aa43
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 de4a56c

Please sign in to comment.