tree e93e168a842bf3b6a7d24cc36a7ca580b064c449
parent b1c9fe7b818acbd36dc908c5c1ad4cab34c67b39
author Arnaldo Carvalho de Melo <[EMAIL PROTECTED]> Fri, 19 Aug 2005 02:47:02 
-0300
committer David S. Miller <[EMAIL PROTECTED]> Tue, 30 Aug 2005 06:02:22 -0700

[DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit

Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 net/dccp/proto.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/net/dccp/proto.c b/net/dccp/proto.c
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -506,8 +506,10 @@ static int __init dccp_ctl_sock_init(voi
 #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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to