Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275742
b: refs/heads/master
c: 4a8bb7e
h: refs/heads/master
v: v3
  • Loading branch information
Veaceslav Falico authored and David S. Miller committed Nov 18, 2011
1 parent d3eb12d commit 49166c6
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 596a1b746c56f974240c8df6d8e3a026c54266ff
refs/heads/master: 4a8bb7e27fbb68da888b55f26defd2855225b2d5
7 changes: 7 additions & 0 deletions trunk/drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ static ssize_t bonding_store_mode(struct device *d,
goto out;
}

if (bond->slave_cnt > 0) {
pr_err("unable to update mode of %s because it has slaves.\n",
bond->dev->name);
ret = -EPERM;
goto out;
}

new_value = bond_parse_parm(buf, bond_mode_tbl);
if (new_value < 0) {
pr_err("%s: Ignoring invalid mode value %.*s.\n",
Expand Down

0 comments on commit 49166c6

Please sign in to comment.