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 53735ee2bbd1..6403e9306ddb 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -934,11 +934,17 @@ static int __init dccp_init(void) | |||
934 | if (rc) | 934 | if (rc) |
935 | goto out_unregister_protosw; | 935 | goto out_unregister_protosw; |
936 | 936 | ||
937 | rc = dccp_ctl_sock_init(); | 937 | rc = dccp_sysctl_init(); |
938 | if (rc) | 938 | if (rc) |
939 | goto out_ackvec_exit; | 939 | goto out_ackvec_exit; |
940 | |||
941 | rc = dccp_ctl_sock_init(); | ||
942 | if (rc) | ||
943 | goto out_sysctl_exit; | ||
940 | out: | 944 | out: |
941 | return rc; | 945 | return rc; |
946 | out_sysctl_exit: | ||
947 | dccp_sysctl_exit(); | ||
942 | out_ackvec_exit: | 948 | out_ackvec_exit: |
943 | dccp_ackvec_exit(); | 949 | dccp_ackvec_exit(); |
944 | out_unregister_protosw: | 950 | out_unregister_protosw: |
@@ -983,6 +989,7 @@ static void __exit dccp_fini(void) | |||
983 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); | 989 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); |
984 | proto_unregister(&dccp_prot); | 990 | proto_unregister(&dccp_prot); |
985 | dccp_ackvec_exit(); | 991 | dccp_ackvec_exit(); |
992 | dccp_sysctl_exit(); | ||
986 | } | 993 | } |
987 | 994 | ||
988 | module_init(dccp_init); | 995 | module_init(dccp_init); |