]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: stop tot_stats estimator only under CONFIG_SYSCTL
authorJulian Anastasov <ja@ssi.bg>
Thu, 12 Jun 2014 06:17:55 +0000 (09:17 +0300)
committerSimon Horman <horms@verge.net.au>
Fri, 13 Jun 2014 07:22:25 +0000 (16:22 +0900)
commitc3a017f1a0abce4066db8dd02dbc79d8f3455d16
tree63d2e46b26f1913d3b913aaea37a482ae91b8a89
parentf98f6c14f2daee558b5e19a2181fffe370c385c0
ipvs: stop tot_stats estimator only under CONFIG_SYSCTL

The tot_stats estimator is started only when CONFIG_SYSCTL
is defined. But it is stopped without checking CONFIG_SYSCTL.
Fix the crash by moving ip_vs_stop_estimator into
ip_vs_control_net_cleanup_sysctl.

The change is needed after commit 70bf31aa7c3419
("IPVS: Add __ip_vs_control_{init,cleanup}_sysctl()") from 2.6.39.

Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c