diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-09-11 18:02:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-19 09:08:01 +0200 |
commit | e90daafad0dc80374bd204a404f030a5efa0b3ac (patch) | |
tree | 763694842c12c6f97fa73afb0acbe8ee85baa08c /net | |
parent | cc243e2427cef2a5dd7367cb0e0b846503350ffe (diff) | |
download | linux-stable-e90daafad0dc80374bd204a404f030a5efa0b3ac.tar.gz linux-stable-e90daafad0dc80374bd204a404f030a5efa0b3ac.tar.bz2 linux-stable-e90daafad0dc80374bd204a404f030a5efa0b3ac.zip |
sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'
[ Upstream commit b456d72412ca8797234449c25815e82f4e1426c0 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-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 a7529aca2ac8..6af871b1c297 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1344,7 +1344,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); |