[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>
This commit is contained in:
Arnaldo Carvalho de Melo 2005-08-18 20:47:02 -03:00 committed by David S. Miller
parent b1c9fe7b81
commit 5480855bfb

View File

@ -506,8 +506,10 @@ static int __init dccp_ctl_sock_init(void)
#ifdef CONFIG_IP_DCCP_UNLOAD_HACK #ifdef CONFIG_IP_DCCP_UNLOAD_HACK
void dccp_ctl_sock_exit(void) void dccp_ctl_sock_exit(void)
{ {
if (dccp_ctl_socket != NULL) if (dccp_ctl_socket != NULL) {
sock_release(dccp_ctl_socket); sock_release(dccp_ctl_socket);
dccp_ctl_socket = NULL;
}
} }
EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit); EXPORT_SYMBOL_GPL(dccp_ctl_sock_exit);