]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipvs: fix crash in ip_vs_control_net_cleanup on unload
authorJulian Anastasov <ja@ssi.bg>
Fri, 13 Apr 2012 15:08:43 +0000 (18:08 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Apr 2012 09:16:30 +0000 (11:16 +0200)
commit8f9b9a2fad47af27e14b037395e03cd8278d96d7
tree5b2d738403991a960ef341ff122f5f03c9b21758
parent7118c07a844d367560ee91adb2071bde2fabcdbf
ipvs: fix crash in ip_vs_control_net_cleanup on unload

commit 14e405461e664b777e2a5636e10b2ebf36a686ec (2.6.39)
("Add __ip_vs_control_{init,cleanup}_sysctl()")
introduced regression due to wrong __net_init for
__ip_vs_control_cleanup_sysctl. This leads to crash when
the ip_vs module is unloaded.

Fix it by changing __net_init to __net_exit for
the function that is already renamed to ip_vs_control_net_cleanup_sysctl.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c