diff mbox series

[3/4] mptcp: init ctx->icsk_af_ops in subflow_ulp_init()

Message ID ffcc774eaf1f11ce57bbee484bed6d8116dc8585.1573471449.git.pabeni@redhat.com
State Accepted, archived
Delegated to: Matthieu Baerts
Headers show
Series None | expand

Commit Message

Paolo Abeni Nov. 11, 2019, 11:29 a.m. UTC
Currently inited in "mptcp: Add key generation and token tree", better
move initializiation here, where we already init icsk->icsk_af_ops

Squash-to: "mptcp: Handle MP_CAPABLE options for outgoing connections"
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/mptcp/subflow.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index 10ec2bcb9807..de10f7f9740c 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -101,6 +101,7 @@  static int subflow_ulp_init(struct sock *sk)
 	pr_debug("subflow=%p", ctx);
 
 	tp->is_mptcp = 1;
+	ctx->icsk_af_ops = icsk->icsk_af_ops;
 	icsk->icsk_af_ops = &subflow_specific;
 out:
 	return err;