diff options
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 95a6ca7d9e51..d9f85464b362 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3077,7 +3077,7 @@ static int bond_open(struct net_device *bond_dev) | |||
3077 | if (bond_has_slaves(bond)) { | 3077 | if (bond_has_slaves(bond)) { |
3078 | read_lock(&bond->curr_slave_lock); | 3078 | read_lock(&bond->curr_slave_lock); |
3079 | bond_for_each_slave(bond, slave, iter) { | 3079 | bond_for_each_slave(bond, slave, iter) { |
3080 | if ((bond->params.mode == BOND_MODE_ACTIVEBACKUP) | 3080 | if (USES_PRIMARY(bond->params.mode) |
3081 | && (slave != bond->curr_active_slave)) { | 3081 | && (slave != bond->curr_active_slave)) { |
3082 | bond_set_slave_inactive_flags(slave, | 3082 | bond_set_slave_inactive_flags(slave, |
3083 | BOND_SLAVE_NOTIFY_NOW); | 3083 | BOND_SLAVE_NOTIFY_NOW); |