summaryrefslogtreecommitdiff
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-21 01:16:17 (GMT)
committerDavid S. Miller <davem@davemloft.net>2006-03-21 01:16:17 (GMT)
commit9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4 (patch)
tree57a33bb4ed32384a95e2c23d7039e8ed99c5b595 /net/dccp/proto.c
parentfa23e2ecd30a584cdcb9b3de0149dbb5c073c20b (diff)
downloadlinux-fsl-qoriq-9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4.tar.xz
[DCCP] ackvec: Introduce dccp_ackvec_slab
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 568d266ee..81ad249 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -877,11 +877,17 @@ static int __init dccp_init(void)
inet_register_protosw(&dccp_v4_protosw);
- rc = dccp_ctl_sock_init();
+ rc = dccp_ackvec_init();
if (rc)
goto out_unregister_protosw;
+
+ rc = dccp_ctl_sock_init();
+ if (rc)
+ goto out_ackvec_exit;
out:
return rc;
+out_ackvec_exit:
+ dccp_ackvec_exit();
out_unregister_protosw:
inet_unregister_protosw(&dccp_v4_protosw);
inet_del_protocol(&dccp_protocol, IPPROTO_DCCP);
@@ -923,6 +929,7 @@ static void __exit dccp_fini(void)
sizeof(struct inet_ehash_bucket)));
kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
proto_unregister(&dccp_prot);
+ dccp_ackvec_exit();
}
module_init(dccp_init);