sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 11 Sep 2019 16:02:39 +0000 (18:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 07:09:32 +0000 (09:09 +0200)
commit41b624ff83d2178387f4e475f35bc10115b93353
tree5dbe2b4d8bbe5836322b20494465bf5d0de5481a
parenta9e91767b921ee196ab693fa13a81b278f53ddac
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>
net/sctp/protocol.c