]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Nov 2019 15:57:29 +0000 (15:57 +0000)
commit6b81a8776711feee9645236d446c48a02f4c0a62
tree83b21a9fd75351ae6656777bee12f9264113dcc3
parentc6efe293fe6f584e0f6e67308f6a8ef476492748
sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'

commit b456d72412ca8797234449c25815e82f4e1426c0 upstream.

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: Ben Hutchings <ben@decadent.org.uk>
net/sctp/protocol.c