diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 247d1888c386..07c54b212cd7 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1331,7 +1331,7 @@ static int __net_init sctp_ctrlsock_init(struct net *net) return status; } -static void __net_init sctp_ctrlsock_exit(struct net *net) +static void __net_exit sctp_ctrlsock_exit(struct net *net) { /* Free the control endpoint. */ inet_ctl_sock_destroy(net->sctp.ctl_sock);