]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Sep 2019 11:55:28 +0000 (12:55 +0100)
commitd8d5b0e575b465fb4838d3be554a15c67187281f
tree5b2d0bf2ee4e55abc6cc232772729ee3fcfb3ba1
parent1b040da7bb407e20a2dc539c8e0cc202b7037c0f
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: 5f56a3d786bb ("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>
net/sctp/protocol.c