Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211413
b: refs/heads/master
c: 27e6f06
h: refs/heads/master
i:
  211411: e78ed6e
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Oct 6, 2010
1 parent 4c5c1c4 commit f9f7cd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 392bd0cb000d4aac9e88e4f50823db85e7220688
refs/heads/master: 27e6f065df132b5270014d3285889b15185e9da9
9 changes: 9 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5164,6 +5164,15 @@ int bond_create(struct net *net, const char *name)
res = dev_alloc_name(bond_dev, "bond%d");
if (res < 0)
goto out;
} else {
/*
* If we're given a name to register
* we need to ensure that its not already
* registered
*/
res = -EEXIST;
if (__dev_get_by_name(net, name) != NULL)
goto out;
}

res = register_netdevice(bond_dev);
Expand Down

0 comments on commit f9f7cd7

Please sign in to comment.