aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/ebt_log.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c
index 45712aec6a0e..031bfa4a51fc 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -196,14 +196,10 @@ static int __init ebt_log_init(void)
196 ret = ebt_register_watcher(&log); 196 ret = ebt_register_watcher(&log);
197 if (ret < 0) 197 if (ret < 0)
198 return ret; 198 return ret;
199 if (nf_log_register(PF_BRIDGE, &ebt_log_logger) < 0) { 199 ret = nf_log_register(PF_BRIDGE, &ebt_log_logger);
200 printk(KERN_WARNING "ebt_log: not logging via system console " 200 if (ret < 0 && ret != -EEXIST)
201 "since somebody else already registered for PF_INET\n"); 201 ebt_unregister_watcher(&log);
202 /* we cannot make module load fail here, since otherwise 202 return ret;
203 * ebtables userspace would abort */
204 }
205
206 return 0;
207} 203}
208 204
209static void __exit ebt_log_fini(void) 205static void __exit ebt_log_fini(void)