diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index b05327ebd332..6ab99001dccc 100644 --- a/net/ipv6/netfilter/ip6t_LOG.c +++ b/net/ipv6/netfilter/ip6t_LOG.c | |||
@@ -493,10 +493,8 @@ static int __init ip6t_log_init(void) | |||
493 | ret = xt_register_target(&ip6t_log_reg); | 493 | ret = xt_register_target(&ip6t_log_reg); |
494 | if (ret < 0) | 494 | if (ret < 0) |
495 | return ret; | 495 | return ret; |
496 | ret = nf_log_register(PF_INET6, &ip6t_logger); | 496 | nf_log_register(PF_INET6, &ip6t_logger); |
497 | if (ret < 0 && ret != -EEXIST) | 497 | return 0; |
498 | xt_unregister_target(&ip6t_log_reg); | ||
499 | return ret; | ||
500 | } | 498 | } |
501 | 499 | ||
502 | static void __exit ip6t_log_fini(void) | 500 | static void __exit ip6t_log_fini(void) |