Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171098
b: refs/heads/master
c: 6639104
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Oct 30, 2009
1 parent 33caf0c commit 860b521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: ec87fd3b4e111e8bc367d247a963e27e5b86df26
refs/heads/master: 6639104bd826e0b1388c69a6b7564fffc636c8a8
4 changes: 3 additions & 1 deletion trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5056,6 +5056,7 @@ static int bond_validate(struct nlattr *tb[], struct nlattr *data[])

static struct rtnl_link_ops bond_link_ops __read_mostly = {
.kind = "bond",
.priv_size = sizeof(struct bonding),
.setup = bond_setup,
.validate = bond_validate,
};
Expand Down Expand Up @@ -5157,7 +5158,7 @@ static int __init bonding_init(void)

res = rtnl_link_register(&bond_link_ops);
if (res)
goto err;
goto err_link;

for (i = 0; i < max_bonds; i++) {
res = bond_create(&init_net, NULL);
Expand All @@ -5176,6 +5177,7 @@ static int __init bonding_init(void)
return res;
err:
rtnl_link_unregister(&bond_link_ops);
err_link:
unregister_pernet_gen_subsys(bond_net_id, &bond_net_ops);
goto out;

Expand Down

0 comments on commit 860b521

Please sign in to comment.