Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48101
b: refs/heads/master
c: 9dc6aa5
h: refs/heads/master
i:
  48099: 44523c7
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 12, 2007
1 parent d0bd4d1 commit 3650492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: a5ea6169f294bc33a762f7c1c240e3ac0f045f9e
refs/heads/master: 9dc6aa5fcfc104becd86c89c5e7ec90e840e0163
2 changes: 1 addition & 1 deletion trunk/include/linux/netfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ struct nf_logger {

/* Function to register/unregister log function. */
int nf_log_register(int pf, struct nf_logger *logger);
int nf_log_unregister_pf(int pf);
void nf_log_unregister_pf(int pf);
void nf_log_unregister_logger(struct nf_logger *logger);

/* Calls the registered backend logging function */
Expand Down
7 changes: 2 additions & 5 deletions trunk/net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,16 @@ int nf_log_register(int pf, struct nf_logger *logger)
}
EXPORT_SYMBOL(nf_log_register);

int nf_log_unregister_pf(int pf)
void nf_log_unregister_pf(int pf)
{
if (pf >= NPROTO)
return -EINVAL;

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

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

return 0;
}
EXPORT_SYMBOL(nf_log_unregister_pf);

Expand Down

0 comments on commit 3650492

Please sign in to comment.