Skip to content

Commit b456d72

Browse files
tititiou36davem330
authored andcommitted
sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'
The '.exit' functions from 'pernet_operations' structure should be marked as __net_exit, not __net_init. Fixes: 8e2d61e ("sctp: fix race on protocol/netns initialization") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f39b683 commit b456d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ static int __net_init sctp_ctrlsock_init(struct net *net)
13361336
return status;
13371337
}
13381338

1339-
static void __net_init sctp_ctrlsock_exit(struct net *net)
1339+
static void __net_exit sctp_ctrlsock_exit(struct net *net)
13401340
{
13411341
/* Free the control endpoint. */
13421342
inet_ctl_sock_destroy(net->sctp.ctl_sock);

0 commit comments

Comments
 (0)