Skip to content

Commit

Permalink
[DCCP]: Set dccp_ctl_socket to NULL in dccp_ctl_sock_exit
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Aug 29, 2005
1 parent b1c9fe7 commit 5480855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/dccp/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5480855

Please sign in to comment.