Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48100
b: refs/heads/master
c: a5ea616
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 12, 2007
1 parent 44523c7 commit d0bd4d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: fd706d6957b3c66ae70b4bbdb9e13993213697f7
refs/heads/master: a5ea6169f294bc33a762f7c1c240e3ac0f045f9e
8 changes: 4 additions & 4 deletions trunk/net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ int nf_log_unregister_pf(int pf)
return -EINVAL;

spin_lock(&nf_log_lock);
nf_logging[pf] = NULL;
rcu_assign_pointer(nf_logging[pf], NULL);
spin_unlock(&nf_log_lock);

/* Give time to concurrent readers. */
synchronize_net();
synchronize_rcu();

return 0;
}
Expand All @@ -63,11 +63,11 @@ void nf_log_unregister_logger(struct nf_logger *logger)
spin_lock(&nf_log_lock);
for (i = 0; i < NPROTO; i++) {
if (nf_logging[i] == logger)
nf_logging[i] = NULL;
rcu_assign_pointer(nf_logging[i], NULL);
}
spin_unlock(&nf_log_lock);

synchronize_net();
synchronize_rcu();
}
EXPORT_SYMBOL(nf_log_unregister_logger);

Expand Down

0 comments on commit d0bd4d1

Please sign in to comment.