diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_log.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index a3ff88dcc2ac..814bab700db6 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c | |||
@@ -40,19 +40,16 @@ int nf_log_register(int pf, struct nf_logger *logger) | |||
40 | } | 40 | } |
41 | EXPORT_SYMBOL(nf_log_register); | 41 | EXPORT_SYMBOL(nf_log_register); |
42 | 42 | ||
43 | int nf_log_unregister_pf(int pf) | 43 | void nf_log_unregister_pf(int pf) |
44 | { | 44 | { |
45 | if (pf >= NPROTO) | 45 | if (pf >= NPROTO) |
46 | return -EINVAL; | 46 | return; |
47 | |||
48 | spin_lock(&nf_log_lock); | 47 | spin_lock(&nf_log_lock); |
49 | rcu_assign_pointer(nf_logging[pf], NULL); | 48 | rcu_assign_pointer(nf_logging[pf], NULL); |
50 | spin_unlock(&nf_log_lock); | 49 | spin_unlock(&nf_log_lock); |
51 | 50 | ||
52 | /* Give time to concurrent readers. */ | 51 | /* Give time to concurrent readers. */ |
53 | synchronize_rcu(); | 52 | synchronize_rcu(); |
54 | |||
55 | return 0; | ||
56 | } | 53 | } |
57 | EXPORT_SYMBOL(nf_log_unregister_pf); | 54 | EXPORT_SYMBOL(nf_log_unregister_pf); |
58 | 55 | ||