From: Arnaldo Carvalho de Melo Date: Thu, 18 Aug 2005 23:47:02 +0000 (-0300) Subject: [DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5480855bfbc125f34d9b752689bb9a64da7e1fc6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- 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) #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);