diff options
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 568d266ee379..81ad24953710 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -877,11 +877,17 @@ static int __init dccp_init(void) | |||
877 | 877 | ||
878 | inet_register_protosw(&dccp_v4_protosw); | 878 | inet_register_protosw(&dccp_v4_protosw); |
879 | 879 | ||
880 | rc = dccp_ctl_sock_init(); | 880 | rc = dccp_ackvec_init(); |
881 | if (rc) | 881 | if (rc) |
882 | goto out_unregister_protosw; | 882 | goto out_unregister_protosw; |
883 | |||
884 | rc = dccp_ctl_sock_init(); | ||
885 | if (rc) | ||
886 | goto out_ackvec_exit; | ||
883 | out: | 887 | out: |
884 | return rc; | 888 | return rc; |
889 | out_ackvec_exit: | ||
890 | dccp_ackvec_exit(); | ||
885 | out_unregister_protosw: | 891 | out_unregister_protosw: |
886 | inet_unregister_protosw(&dccp_v4_protosw); | 892 | inet_unregister_protosw(&dccp_v4_protosw); |
887 | inet_del_protocol(&dccp_protocol, IPPROTO_DCCP); | 893 | inet_del_protocol(&dccp_protocol, IPPROTO_DCCP); |
@@ -923,6 +929,7 @@ static void __exit dccp_fini(void) | |||
923 | sizeof(struct inet_ehash_bucket))); | 929 | sizeof(struct inet_ehash_bucket))); |
924 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); | 930 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); |
925 | proto_unregister(&dccp_prot); | 931 | proto_unregister(&dccp_prot); |
932 | dccp_ackvec_exit(); | ||
926 | } | 933 | } |
927 | 934 | ||
928 | module_init(dccp_init); | 935 | module_init(dccp_init); |