diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-20 17:16:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 17:16:01 -0800 |
commit | fa23e2ecd30a584cdcb9b3de0149dbb5c073c20b (patch) | |
tree | 85fb7814b8e5dc7812b353161d06066bc593b79a /net/dccp | |
parent | 7400d781105d18bf5bba89f8b986a413f14144a8 (diff) | |
download | kernel_samsung_tuna-fa23e2ecd30a584cdcb9b3de0149dbb5c073c20b.zip kernel_samsung_tuna-fa23e2ecd30a584cdcb9b3de0149dbb5c073c20b.tar.gz kernel_samsung_tuna-fa23e2ecd30a584cdcb9b3de0149dbb5c073c20b.tar.bz2 |
[DCCP]: Fix error handling in dccp_init
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/proto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 65b11ea..568d266ee 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c @@ -799,6 +799,7 @@ static int __init dccp_init(void) if (rc) goto out; + rc = -ENOBUFS; dccp_hashinfo.bind_bucket_cachep = kmem_cache_create("dccp_bind_bucket", sizeof(struct inet_bind_bucket), 0, @@ -866,7 +867,8 @@ static int __init dccp_init(void) 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; rc = -EAGAIN; |