From: Arnaldo Carvalho de Melo Date: Thu, 18 Aug 2005 23:47:02 +0000 (-0300) Subject: [DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit X-Git-Tag: v2.6.14-rc1~1035^2~63 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5480855bfbc125f34d9b752689bb9a64da7e1fc6;p=linux-2.6-omap-h63xx.git [DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 0b715ceb38b..8b613c3017c 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c @@ -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);