summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-05-19 14:32:57 +0200
committerSimon Horman <horms@verge.net.au>2011-07-22 02:17:21 +0200
commit7676e345824f162191b1fe2058ad948a6cf91c20 (patch)
treec9fc53edb9be2b6f682b711c1120c9b8a374bb2f /net
parentnetfilter: nf_nat: avoid double seq_adjust for loopback (diff)
downloadlinux-7676e345824f162191b1fe2058ad948a6cf91c20.tar.xz
linux-7676e345824f162191b1fe2058ad948a6cf91c20.zip
IPVS: Free resources on module removal
This resolves a panic on module removal. Reported-by: Dave Jones <davej@redhat.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 699c79a55657..a178cb345848 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -3771,6 +3771,7 @@ err_sock:
void ip_vs_control_cleanup(void)
{
EnterFunction(2);
+ unregister_netdevice_notifier(&ip_vs_dst_notifier);
ip_vs_genl_unregister();
nf_unregister_sockopt(&ip_vs_sockopts);
LeaveFunction(2);