Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81916
b: refs/heads/master
c: c52fbb4
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 1, 2008
1 parent 3325ccb commit 378582b
Show file tree
Hide file tree
Showing 2 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: 58a3c9bb0c69f8517c2243cd0912b3f87b4f868c
refs/heads/master: c52fbb410b2662a7bbc5cbe5969d73c733151498
6 changes: 3 additions & 3 deletions trunk/net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ void nf_conntrack_alter_reply(struct nf_conn *ct,
struct nf_conn_help *help = nfct_help(ct);
struct nf_conntrack_helper *helper;

write_lock_bh(&nf_conntrack_lock);
/* Should be unconfirmed, so not in hash table yet */
NF_CT_ASSERT(!nf_ct_is_confirmed(ct));

Expand All @@ -738,8 +737,9 @@ void nf_conntrack_alter_reply(struct nf_conn *ct,

ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
if (ct->master || (help && help->expecting != 0))
goto out;
return;

rcu_read_lock();
helper = __nf_ct_helper_find(newreply);
if (helper == NULL) {
if (help)
Expand All @@ -757,7 +757,7 @@ void nf_conntrack_alter_reply(struct nf_conn *ct,

rcu_assign_pointer(help->helper, helper);
out:
write_unlock_bh(&nf_conntrack_lock);
rcu_read_unlock();
}
EXPORT_SYMBOL_GPL(nf_conntrack_alter_reply);

Expand Down

0 comments on commit 378582b

Please sign in to comment.