Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233859
b: refs/heads/master
c: 9ef0298
h: refs/heads/master
i:
  233857: be25f93
  233855: 55d5931
v: v3
  • Loading branch information
Jan Engelhardt authored and Patrick McHardy committed Mar 2, 2011
1 parent aa05b50 commit 6d044f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff75f40f44ae9b79d520bf32a05d35af74a805c0
refs/heads/master: 9ef0298a8e5730d9a46d640014c727f3b4152870
4 changes: 4 additions & 0 deletions trunk/net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ EXPORT_SYMBOL(nf_log_unregister);

int nf_log_bind_pf(u_int8_t pf, const struct nf_logger *logger)
{
if (pf >= ARRAY_SIZE(nf_loggers))
return -EINVAL;
mutex_lock(&nf_log_mutex);
if (__find_logger(pf, logger->name) == NULL) {
mutex_unlock(&nf_log_mutex);
Expand All @@ -98,6 +100,8 @@ EXPORT_SYMBOL(nf_log_bind_pf);

void nf_log_unbind_pf(u_int8_t pf)
{
if (pf >= ARRAY_SIZE(nf_loggers))
return;
mutex_lock(&nf_log_mutex);
rcu_assign_pointer(nf_loggers[pf], NULL);
mutex_unlock(&nf_log_mutex);
Expand Down

0 comments on commit 6d044f7

Please sign in to comment.