aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 7b30c12147c2..9cb2989f93b2 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -684,7 +684,7 @@ extern struct net_proto_family inet_family_ops;
684static struct inet_protosw dccp_v4_protosw = { 684static struct inet_protosw dccp_v4_protosw = {
685 .type = SOCK_DCCP, 685 .type = SOCK_DCCP,
686 .protocol = IPPROTO_DCCP, 686 .protocol = IPPROTO_DCCP,
687 .prot = &dccp_v4_prot, 687 .prot = &dccp_prot,
688 .ops = &inet_dccp_ops, 688 .ops = &inet_dccp_ops,
689 .capability = -1, 689 .capability = -1,
690 .no_check = 0, 690 .no_check = 0,
@@ -769,7 +769,7 @@ static int __init dccp_init(void)
769{ 769{
770 unsigned long goal; 770 unsigned long goal;
771 int ehash_order, bhash_order, i; 771 int ehash_order, bhash_order, i;
772 int rc = proto_register(&dccp_v4_prot, 1); 772 int rc = proto_register(&dccp_prot, 1);
773 773
774 if (rc) 774 if (rc)
775 goto out; 775 goto out;
@@ -872,7 +872,7 @@ out_free_bind_bucket_cachep:
872 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); 872 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
873 dccp_hashinfo.bind_bucket_cachep = NULL; 873 dccp_hashinfo.bind_bucket_cachep = NULL;
874out_proto_unregister: 874out_proto_unregister:
875 proto_unregister(&dccp_v4_prot); 875 proto_unregister(&dccp_prot);
876 goto out; 876 goto out;
877} 877}
878 878
@@ -895,7 +895,7 @@ static void __exit dccp_fini(void)
895 get_order(dccp_hashinfo.ehash_size * 895 get_order(dccp_hashinfo.ehash_size *
896 sizeof(struct inet_ehash_bucket))); 896 sizeof(struct inet_ehash_bucket)));
897 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); 897 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
898 proto_unregister(&dccp_v4_prot); 898 proto_unregister(&dccp_prot);
899} 899}
900 900
901module_init(dccp_init); 901module_init(dccp_init);