Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214298
b: refs/heads/master
c: d1fb627
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Sep 7, 2010
1 parent 325a772 commit dce04f0
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 9fbfca013176f9b90d186f3b446fd93e4d972b25
refs/heads/master: d1fb62796cdac6899ebd4319e4a610684db063e9
10 changes: 10 additions & 0 deletions trunk/net/tipc/eth_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ static int enable_bearer(struct tipc_bearer *tb_ptr)
struct eth_bearer *eb_ptr = &eth_bearers[0];
struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS];
char *driver_name = strchr((const char *)tb_ptr->name, ':') + 1;
int pending_dev = 0;

/* Find unused Ethernet bearer structure */

while (eb_ptr->dev) {
if (!eb_ptr->bearer)
pending_dev++;
if (++eb_ptr == stop)
return pending_dev ? -EAGAIN : -EDQUOT;
}

/* Find device with specified name */

Expand Down

0 comments on commit dce04f0

Please sign in to comment.