Commit fa23e2ec authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by David S. Miller

[DCCP]: Fix error handling in dccp_init

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7400d781
...@@ -799,6 +799,7 @@ static int __init dccp_init(void) ...@@ -799,6 +799,7 @@ static int __init dccp_init(void)
if (rc) if (rc)
goto out; goto out;
rc = -ENOBUFS;
dccp_hashinfo.bind_bucket_cachep = dccp_hashinfo.bind_bucket_cachep =
kmem_cache_create("dccp_bind_bucket", kmem_cache_create("dccp_bind_bucket",
sizeof(struct inet_bind_bucket), 0, sizeof(struct inet_bind_bucket), 0,
...@@ -866,7 +867,8 @@ static int __init dccp_init(void) ...@@ -866,7 +867,8 @@ static int __init dccp_init(void)
INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain);
} }
if (init_dccp_v4_mibs()) rc = init_dccp_v4_mibs();
if (rc)
goto out_free_dccp_bhash; goto out_free_dccp_bhash;
rc = -EAGAIN; rc = -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment