提交 5480855b 编写于 作者: A Arnaldo Carvalho de Melo 提交者: David S. Miller

[DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit

Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b1c9fe7b
...@@ -506,8 +506,10 @@ static int __init dccp_ctl_sock_init(void) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册