summaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c4
1 files changed, 3 insertions, 1 deletions
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 @@ 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);
OpenPOWER on IntegriCloud