Commit 4ffe0225 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller
Browse files

[SCTP]: Use inet_ctl_sock_create for control socket creation.

sk->sk_proc->(un)hash is noop right now, so the unification is correct.

Signed-off-by: default avatarDenis V. Lunev <>
Acked-by: default avatarArnaldo Carvalho de Melo <>
Signed-off-by: default avatarDavid S. Miller <>
parent 3d58b5fa
......@@ -680,16 +680,13 @@ static int sctp_ctl_sock_init(void)
family = PF_INET;
err = sock_create_kern(family, SOCK_SEQPACKET, IPPROTO_SCTP,
err = inet_ctl_sock_create(&sctp_ctl_socket, family,
if (err < 0) {
"SCTP: Failed to create the SCTP control socket.\n");
return err;
sctp_ctl_socket->sk->sk_allocation = GFP_ATOMIC;
inet_sk(sctp_ctl_socket->sk)->uc_ttl = -1;
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment