clusterip: exit_net cleanup check added
Subsystems (3)
PATCH 9/21 clusterip: exit_net cleanup check added
Be sure that configs list initialized in net_init hook was return to initial state.
Signed-off-by Vasily Averin <[email protected]>
--- net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 ++ 1 file changed, 2 insertions(+)
net/ipv4/netfilter/ipt_CLUSTERIP.c +2 -0
@@ -819,6 +819,8 @@ static void clusterip_net_exit(struct net *net) cn->procdir =NULL ;#endif nf_unregister_net_hook (net, &cip_arp_ops); +WARN (!list_empty (&cn->configs), +"net %p exit: clusterip configs list is not empty\n" , net); }static struct pernet_operations clusterip_net_ops = {
Signature · 1 line
2.7.4