Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144591
b: refs/heads/master
c: 1363d9b
h: refs/heads/master
i:
  144589: 44c39af
  144587: f1cb7c9
  144583: c6e6ef9
  144575: 5cac01f
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed May 1, 2009
1 parent 8a3ac74 commit 59f8a8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: c047fcd245975f40312ed57bf43e7d4abd188e6b
refs/heads/master: 1363d9b135270662852ed2e6629fb79a36de5400
13 changes: 6 additions & 7 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5158,16 +5158,15 @@ int bond_create(char *name, struct bond_params *params)
up_write(&bonding_rwsem);
rtnl_unlock(); /* allows sysfs registration of net device */
res = bond_create_sysfs_entry(netdev_priv(bond_dev));
if (res < 0) {
rtnl_lock();
down_write(&bonding_rwsem);
bond_deinit(bond_dev);
unregister_netdevice(bond_dev);
goto out_rtnl;
}
if (res < 0)
goto out_unreg;

return 0;

out_unreg:
rtnl_lock();
down_write(&bonding_rwsem);
unregister_netdevice(bond_dev);
out_bond:
bond_deinit(bond_dev);
out_netdev:
Expand Down

0 comments on commit 59f8a8a

Please sign in to comment.