Skip to content

Commit

Permalink
[DCCP]: Fix error handling in dccp_init
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Mar 21, 2006
1 parent 7400d78 commit fa23e2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/dccp/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fa23e2e

Please sign in to comment.