IPVS: Free resources on module removal
authorSimon Horman <horms@verge.net.au>
Thu, 19 May 2011 12:32:57 +0000 (21:32 +0900)
committerSimon Horman <horms@verge.net.au>
Fri, 22 Jul 2011 00:17:21 +0000 (09:17 +0900)
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>
net/netfilter/ipvs/ip_vs_ctl.c

index 699c79a..a178cb3 100644 (file)
@@ -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);