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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5480855bfbc125f34d9b752689bb9a64da7e1fc6;p=linux-2.6 [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 0b715ceb38..8b613c3017 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);