aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/ebt_ulog.c3
-rw-r--r--net/bridge/netfilter/ebtable_broute.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c
index 3bf43f7bb9d4..442b0321acb9 100644
--- a/net/bridge/netfilter/ebt_ulog.c
+++ b/net/bridge/netfilter/ebt_ulog.c
@@ -319,12 +319,11 @@ static void __exit ebt_ulog_fini(void)
319 for (i = 0; i < EBT_ULOG_MAXNLGROUPS; i++) { 319 for (i = 0; i < EBT_ULOG_MAXNLGROUPS; i++) {
320 ub = &ulog_buffers[i]; 320 ub = &ulog_buffers[i];
321 del_timer(&ub->timer); 321 del_timer(&ub->timer);
322 spin_lock_bh(&ub->lock); 322
323 if (ub->skb) { 323 if (ub->skb) {
324 kfree_skb(ub->skb); 324 kfree_skb(ub->skb);
325 ub->skb = NULL; 325 ub->skb = NULL;
326 } 326 }
327 spin_unlock_bh(&ub->lock);
328 } 327 }
329 netlink_kernel_release(ebtulognl); 328 netlink_kernel_release(ebtulognl);
330} 329}
diff --git a/net/bridge/netfilter/ebtable_broute.c b/net/bridge/netfilter/ebtable_broute.c
index 40d8258bf74f..70f656ce0f4a 100644
--- a/net/bridge/netfilter/ebtable_broute.c
+++ b/net/bridge/netfilter/ebtable_broute.c
@@ -64,9 +64,7 @@ static int ebt_broute(struct sk_buff *skb)
64static int __net_init broute_net_init(struct net *net) 64static int __net_init broute_net_init(struct net *net)
65{ 65{
66 net->xt.broute_table = ebt_register_table(net, &broute_table); 66 net->xt.broute_table = ebt_register_table(net, &broute_table);
67 if (IS_ERR(net->xt.broute_table)) 67 return PTR_RET(net->xt.broute_table);
68 return PTR_ERR(net->xt.broute_table);
69 return 0;
70} 68}
71 69
72static void __net_exit broute_net_exit(struct net *net) 70static void __net_exit broute_net_exit(struct net *net)