mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:26:42 +07:00
[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:
parent
b1c9fe7b81
commit
5480855bfb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user