|
@@ -2072,7 +2072,7 @@ static int __net_init __ip_vs_init(struct net *net)
|
|
|
atomic_inc(&ipvs_netns_cnt);
|
|
|
net->ipvs = ipvs;
|
|
|
|
|
|
- if (ip_vs_estimator_net_init(net) < 0)
|
|
|
+ if (ip_vs_estimator_net_init(ipvs) < 0)
|
|
|
goto estimator_fail;
|
|
|
|
|
|
if (ip_vs_control_net_init(ipvs) < 0)
|
|
@@ -2106,7 +2106,7 @@ app_fail:
|
|
|
protocol_fail:
|
|
|
ip_vs_control_net_cleanup(ipvs);
|
|
|
control_fail:
|
|
|
- ip_vs_estimator_net_cleanup(net);
|
|
|
+ ip_vs_estimator_net_cleanup(ipvs);
|
|
|
estimator_fail:
|
|
|
net->ipvs = NULL;
|
|
|
return -ENOMEM;
|
|
@@ -2121,7 +2121,7 @@ static void __net_exit __ip_vs_cleanup(struct net *net)
|
|
|
ip_vs_app_net_cleanup(net);
|
|
|
ip_vs_protocol_net_cleanup(net);
|
|
|
ip_vs_control_net_cleanup(ipvs);
|
|
|
- ip_vs_estimator_net_cleanup(net);
|
|
|
+ ip_vs_estimator_net_cleanup(ipvs);
|
|
|
IP_VS_DBG(2, "ipvs netns %d released\n", ipvs->gen);
|
|
|
net->ipvs = NULL;
|
|
|
}
|