Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69313
b: refs/heads/master
c: 6b1bf09
h: refs/heads/master
i:
  69311: d999e62
v: v3
  • Loading branch information
Moni Shoua authored and Jeff Garzik committed Oct 15, 2007
1 parent 4a3e90b commit ea5a3c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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: 2ab82852a2706b47c257ac87675ab8b06bc214dd
refs/heads/master: 6b1bf096508c870889c2be63c7757a04d72116fe
5 changes: 3 additions & 2 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,9 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)

/* bond must be initialized by bond_open() before enslaving */
if (!(bond_dev->flags & IFF_UP)) {
dprintk("Error, master_dev is not up\n");
return -EPERM;
printk(KERN_WARNING DRV_NAME
" %s: master_dev is not up in bond_enslave\n",
bond_dev->name);
}

/* already enslaved */
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,9 @@ static ssize_t bonding_store_slaves(struct device *d,

/* Quick sanity check -- is the bond interface up? */
if (!(bond->dev->flags & IFF_UP)) {
printk(KERN_ERR DRV_NAME
": %s: Unable to update slaves because interface is down.\n",
printk(KERN_WARNING DRV_NAME
": %s: doing slave updates when interface is down.\n",
bond->dev->name);
ret = -EPERM;
goto out;
}

/* Note: We can't hold bond->lock here, as bond_create grabs it. */
Expand Down

0 comments on commit ea5a3c9

Please sign in to comment.