ipvs: null check of net->ipvs in lblc(r) shedulers
[linux-flexiantxendom0-3.2.10.git] / net / netfilter / ipvs / ip_vs_lblc.c
index 0f16283..caa4370 100644 (file)
@@ -551,6 +551,9 @@ static int __net_init __ip_vs_lblc_init(struct net *net)
 {
        struct netns_ipvs *ipvs = net_ipvs(net);
 
+       if (!ipvs)
+               return -ENOENT;
+
        if (!net_eq(net, &init_net)) {
                ipvs->lblc_ctl_table = kmemdup(vs_vars_table,
                                                sizeof(vs_vars_table),