]> err.no Git - linux-2.6/commitdiff
[DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit
authorArnaldo Carvalho de Melo <acme@mandriva.com>
Thu, 18 Aug 2005 23:47:02 +0000 (20:47 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 23:02:22 +0000 (16:02 -0700)
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/proto.c

index 0b715ceb38b58c1b4db312693e7b49382bd6be78..8b613c3017c5e4e2a56e4a51e7d1226c97877f7e 100644 (file)
@@ -506,8 +506,10 @@ static int __init dccp_ctl_sock_init(void)
 #ifdef CONFIG_IP_DCCP_UNLOAD_HACK
 void dccp_ctl_sock_exit(void)
 {
-       if (dccp_ctl_socket != NULL)
+       if (dccp_ctl_socket != NULL) {
                sock_release(dccp_ctl_socket);
+               dccp_ctl_socket = NULL;
+       }
 }
 
 EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit);