diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dccp/proto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 0b715ceb38b5..8b613c3017c5 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -506,8 +506,10 @@ static int __init dccp_ctl_sock_init(void) | |||
506 | #ifdef CONFIG_IP_DCCP_UNLOAD_HACK | 506 | #ifdef CONFIG_IP_DCCP_UNLOAD_HACK |
507 | void dccp_ctl_sock_exit(void) | 507 | void dccp_ctl_sock_exit(void) |
508 | { | 508 | { |
509 | if (dccp_ctl_socket != NULL) | 509 | if (dccp_ctl_socket != NULL) { |
510 | sock_release(dccp_ctl_socket); | 510 | sock_release(dccp_ctl_socket); |
511 | dccp_ctl_socket = NULL; | ||
512 | } | ||
511 | } | 513 | } |
512 | 514 | ||
513 | EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit); | 515 | EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit); |