diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-09-11 18:02:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-12 12:55:28 +0100 |
commit | b456d72412ca8797234449c25815e82f4e1426c0 (patch) | |
tree | 5b2d0bf2ee4e55abc6cc232772729ee3fcfb3ba1 /net/sctp | |
parent | f39b683d35dfa93a58f1b400a8ec0ff81296b37c (diff) | |
download | linux-b456d72412ca8797234449c25815e82f4e1426c0.tar.bz2 |
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: 8e2d61e0aed2 ("sctp: fix race on protocol/netns initialization")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 2d47adcb4cbe..53746ffeeca3 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1336,7 +1336,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); |