Merge git://1984.lsi.us.es/nf-next
Pablo Neira Ayuso says: ==================== This is the first batch of Netfilter and IPVS updates for your net-next tree. Mostly cleanups for the Netfilter side. They are: * Remove unnecessary RTNL locking now that we have support for namespace in nf_conntrack, from Patrick McHardy. * Cleanup to eliminate unnecessary goto in the initialization path of several Netfilter tables, from Jean Sacren. * Another cleanup from Wu Fengguang, this time to PTR_RET instead of if IS_ERR then return PTR_ERR. * Use list_for_each_entry_continue_rcu in nf_iterate, from Michael Wang. * Add pmtu_disc sysctl option to disable PMTU in their tunneling transmitter, from Julian Anastasov. * Generalize application protocol registration in IPVS and modify IPVS FTP helper to use it, from Julian Anastasov. * update Kconfig. The IPVS FTP helper depends on the Netfilter FTP helper for NAT support, from Julian Anastasov. * Add logic to update PMTU for IPIP packets in IPVS, again from Julian Anastasov. * A couple of sparse warning fixes for IPVS and Netfilter from Claudiu Ghioc and Patrick McHardy respectively. Patrick's IPv6 NAT changes will follow after this batch, I need to flush this batch first before refreshing my tree. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -61,9 +61,7 @@ static int __net_init ip6table_filter_net_init(struct net *net)
|
||||
net->ipv6.ip6table_filter =
|
||||
ip6t_register_table(net, &packet_filter, repl);
|
||||
kfree(repl);
|
||||
if (IS_ERR(net->ipv6.ip6table_filter))
|
||||
return PTR_ERR(net->ipv6.ip6table_filter);
|
||||
return 0;
|
||||
return PTR_RET(net->ipv6.ip6table_filter);
|
||||
}
|
||||
|
||||
static void __net_exit ip6table_filter_net_exit(struct net *net)
|
||||
|
||||
@@ -97,9 +97,7 @@ static int __net_init ip6table_mangle_net_init(struct net *net)
|
||||
net->ipv6.ip6table_mangle =
|
||||
ip6t_register_table(net, &packet_mangler, repl);
|
||||
kfree(repl);
|
||||
if (IS_ERR(net->ipv6.ip6table_mangle))
|
||||
return PTR_ERR(net->ipv6.ip6table_mangle);
|
||||
return 0;
|
||||
return PTR_RET(net->ipv6.ip6table_mangle);
|
||||
}
|
||||
|
||||
static void __net_exit ip6table_mangle_net_exit(struct net *net)
|
||||
|
||||
@@ -40,9 +40,7 @@ static int __net_init ip6table_raw_net_init(struct net *net)
|
||||
net->ipv6.ip6table_raw =
|
||||
ip6t_register_table(net, &packet_raw, repl);
|
||||
kfree(repl);
|
||||
if (IS_ERR(net->ipv6.ip6table_raw))
|
||||
return PTR_ERR(net->ipv6.ip6table_raw);
|
||||
return 0;
|
||||
return PTR_RET(net->ipv6.ip6table_raw);
|
||||
}
|
||||
|
||||
static void __net_exit ip6table_raw_net_exit(struct net *net)
|
||||
|
||||
@@ -58,10 +58,7 @@ static int __net_init ip6table_security_net_init(struct net *net)
|
||||
net->ipv6.ip6table_security =
|
||||
ip6t_register_table(net, &security_table, repl);
|
||||
kfree(repl);
|
||||
if (IS_ERR(net->ipv6.ip6table_security))
|
||||
return PTR_ERR(net->ipv6.ip6table_security);
|
||||
|
||||
return 0;
|
||||
return PTR_RET(net->ipv6.ip6table_security);
|
||||
}
|
||||
|
||||
static void __net_exit ip6table_security_net_exit(struct net *net)
|
||||
|
||||
Reference in New Issue
Block a user