[DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 0b715ce..8b613c3 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -506,8 +506,10 @@
#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);