aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-18 19:47:02 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 19:02:22 -0400
commit5480855bfbc125f34d9b752689bb9a64da7e1fc6 (patch)
treee93e168a842bf3b6a7d24cc36a7ca580b064c449 /net/dccp/proto.c
parentb1c9fe7b818acbd36dc908c5c1ad4cab34c67b39 (diff)
[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>
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 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
507void dccp_ctl_sock_exit(void) 507void 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
513EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit); 515EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit);