Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82667
b: refs/heads/master
c: 4fe4763
h: refs/heads/master
i:
  82665: a377d14
  82663: 6c6bfaa
v: v3
  • Loading branch information
Jay Vosburgh authored and David S. Miller committed Feb 3, 2008
1 parent 1e026ed commit 20a34f1
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 80ee5ad23150f1f3fe8d35728e860850ccea44da
refs/heads/master: 4fe4763cd8cacd81d892193efb48b99c99c15323
16 changes: 9 additions & 7 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4896,14 +4896,16 @@ int bond_create(char *name, struct bond_params *params, struct bonding **newbond
down_write(&bonding_rwsem);

/* Check to see if the bond already exists. */
list_for_each_entry_safe(bond, nxt, &bond_dev_list, bond_list)
if (strnicmp(bond->dev->name, name, IFNAMSIZ) == 0) {
printk(KERN_ERR DRV_NAME
if (name) {
list_for_each_entry_safe(bond, nxt, &bond_dev_list, bond_list)
if (strnicmp(bond->dev->name, name, IFNAMSIZ) == 0) {
printk(KERN_ERR DRV_NAME
": cannot add bond %s; it already exists\n",
name);
res = -EPERM;
goto out_rtnl;
}
name);
res = -EPERM;
goto out_rtnl;
}
}

bond_dev = alloc_netdev(sizeof(struct bonding), name ? name : "",
ether_setup);
Expand Down

0 comments on commit 20a34f1

Please sign in to comment.