aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-04-03 17:26:36 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-03 17:26:36 -0400
commit4ffe0225e0628a5812168570b50d828f541c6b06 (patch)
tree93d923b30a7406c97d4a5c71009de11865c99d88
parent3d58b5fa8e4c461ab09afdacd3d1754fccca06ad (diff)
[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>
-rw-r--r--net/sctp/protocol.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 5aea91137fbb..6a3be58f606d 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -680,16 +680,13 @@ static int sctp_ctl_sock_init(void)
680 else 680 else
681 family = PF_INET; 681 family = PF_INET;
682 682
683 err = sock_create_kern(family, SOCK_SEQPACKET, IPPROTO_SCTP, 683 err = inet_ctl_sock_create(&sctp_ctl_socket, family,
684 &sctp_ctl_socket); 684 SOCK_SEQPACKET, IPPROTO_SCTP);
685 if (err < 0) { 685 if (err < 0) {
686 printk(KERN_ERR 686 printk(KERN_ERR
687 "SCTP: Failed to create the SCTP control socket.\n"); 687 "SCTP: Failed to create the SCTP control socket.\n");
688 return err; 688 return err;
689 } 689 }
690 sctp_ctl_socket->sk->sk_allocation = GFP_ATOMIC;
691 inet_sk(sctp_ctl_socket->sk)->uc_ttl = -1;
692
693 return 0; 690 return 0;
694} 691}
695 692