mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
[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: Denis V. Lunev <den@openvz.org> Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3d58b5fa8e
commit
4ffe0225e0
1 changed files with 2 additions and 5 deletions
|
@ -680,16 +680,13 @@ static int sctp_ctl_sock_init(void)
|
|||
else
|
||||
family = PF_INET;
|
||||
|
||||
err = sock_create_kern(family, SOCK_SEQPACKET, IPPROTO_SCTP,
|
||||
&sctp_ctl_socket);
|
||||
err = inet_ctl_sock_create(&sctp_ctl_socket, family,
|
||||
SOCK_SEQPACKET, IPPROTO_SCTP);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR
|
||||
"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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue