Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188142
b: refs/heads/master
c: d14a0eb
h: refs/heads/master
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Mar 15, 2010
1 parent b9df6f9 commit b9756fb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8d689743106bab5c49dda87080e76aa78db8a56
refs/heads/master: d14a0ebda7d3daede1a99c01527affb9ceaa4c22
8 changes: 4 additions & 4 deletions trunk/net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,11 @@ static struct inet_protosw dccp_v4_protosw = {

static int __net_init dccp_v4_init_net(struct net *net)
{
int err;
if (dccp_hashinfo.bhash == NULL)
return -ESOCKTNOSUPPORT;

err = inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET,
SOCK_DCCP, IPPROTO_DCCP, net);
return err;
return inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET,
SOCK_DCCP, IPPROTO_DCCP, net);
}

static void __net_exit dccp_v4_exit_net(struct net *net)
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/dccp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,11 +1191,11 @@ static struct inet_protosw dccp_v6_protosw = {

static int __net_init dccp_v6_init_net(struct net *net)
{
int err;
if (dccp_hashinfo.bhash == NULL)
return -ESOCKTNOSUPPORT;

err = inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6,
SOCK_DCCP, IPPROTO_DCCP, net);
return err;
return inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6,
SOCK_DCCP, IPPROTO_DCCP, net);
}

static void __net_exit dccp_v6_exit_net(struct net *net)
Expand Down
16 changes: 9 additions & 7 deletions trunk/net/dccp/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ static int __init dccp_init(void)
FIELD_SIZEOF(struct sk_buff, cb));
rc = percpu_counter_init(&dccp_orphan_count, 0);
if (rc)
goto out;
goto out_fail;
rc = -ENOBUFS;
inet_hashinfo_init(&dccp_hashinfo);
dccp_hashinfo.bind_bucket_cachep =
Expand Down Expand Up @@ -1125,8 +1125,9 @@ static int __init dccp_init(void)
goto out_sysctl_exit;

dccp_timestamping_init();
out:
return rc;

return 0;

out_sysctl_exit:
dccp_sysctl_exit();
out_ackvec_exit:
Expand All @@ -1135,18 +1136,19 @@ static int __init dccp_init(void)
dccp_mib_exit();
out_free_dccp_bhash:
free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order);
dccp_hashinfo.bhash = NULL;
out_free_dccp_locks:
inet_ehash_locks_free(&dccp_hashinfo);
out_free_dccp_ehash:
free_pages((unsigned long)dccp_hashinfo.ehash, ehash_order);
dccp_hashinfo.ehash = NULL;
out_free_bind_bucket_cachep:
kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
dccp_hashinfo.bind_bucket_cachep = NULL;
out_free_percpu:
percpu_counter_destroy(&dccp_orphan_count);
goto out;
out_fail:
dccp_hashinfo.bhash = NULL;
dccp_hashinfo.ehash = NULL;
dccp_hashinfo.bind_bucket_cachep = NULL;
return rc;
}

static void __exit dccp_fini(void)
Expand Down

0 comments on commit b9756fb

Please sign in to comment.