Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232888
b: refs/heads/master
c: 3db7e93
h: refs/heads/master
v: v3
  • Loading branch information
Pablo Neira Ayuso authored and Patrick McHardy committed Feb 1, 2011
1 parent a9491ae commit d7cb602
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 9d0db8b6b1da9e3d4c696ef29449700c58d589db
refs/heads/master: 3db7e93d3308fb882884b9f024235d6fbf542034
3 changes: 0 additions & 3 deletions trunk/include/net/netfilter/nf_conntrack_ecache.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct)
if (e == NULL)
return;

if (!(e->ctmask & (1 << event)))
return;

set_bit(event, &e->cache);
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/net/netfilter/nf_conntrack_ecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void nf_ct_deliver_cached_events(struct nf_conn *ct)
* this does not harm and it happens very rarely. */
unsigned long missed = e->missed;

if (!((events | missed) & e->ctmask))
goto out_unlock;

ret = notify->fcn(events | missed, &item);
if (unlikely(ret < 0 || missed)) {
spin_lock_bh(&ct->lock);
Expand Down

0 comments on commit d7cb602

Please sign in to comment.