diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 8cdd4ec152e7..cd6f8d655c18 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -2823,8 +2823,10 @@ static int mptcp_init_sock(struct sock *sk) if (unlikely(!net->mib.mptcp_statistics) && !mptcp_mib_alloc(net)) return -ENOMEM; + rcu_read_lock(); ret = mptcp_init_sched(mptcp_sk(sk), mptcp_sched_find(mptcp_get_scheduler(net))); + rcu_read_unlock(); if (ret) return ret;