Re: [PATCH net v2] sctp: fix race on protocol/netns initialization

2015-09-11 Thread David Miller
From: Marcelo Ricardo Leitner Date: Thu, 10 Sep 2015 17:31:15 -0300 > Consider sctp module is unloaded and is being requested because an user > is creating a sctp socket. > > During initialization, sctp will add the new protocol type and then > initialize pernet subsys: ... > The problem is tha

[PATCH net v2] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
Consider sctp module is unloaded and is being requested because an user is creating a sctp socket. During initialization, sctp will add the new protocol type and then initialize pernet subsys: status = sctp_v4_protosw_init(); if (status) goto err_protosw_init;