projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7400d78
)
[DCCP]: Fix error handling in dccp_init
author
Arnaldo Carvalho de Melo
<acme@mandriva.com>
Tue, 21 Mar 2006 01:16:01 +0000
(17:16 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Mar 2006 01:16:01 +0000
(17:16 -0800)
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/proto.c
patch
|
blob
|
history
diff --git
a/net/dccp/proto.c
b/net/dccp/proto.c
index 65b11ea90d858818db105a4855b2a285aacf7ab2..568d266ee3792c6e3b90e9bd4f533f8f351b8bdf 100644
(file)
--- 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;