mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
bonding: Fix slave selection bug.
The returned slave is incorrect, if the net device under check is not charged yet by the master. Signed-off-by: Hillf Danton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
82cc4f5cb8
commit
af3e5bd5f6
1 changed files with 2 additions and 2 deletions
|
|
@ -269,11 +269,11 @@ static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct n
|
|||
|
||||
bond_for_each_slave(bond, slave, i) {
|
||||
if (slave->dev == slave_dev) {
|
||||
break;
|
||||
return slave;
|
||||
}
|
||||
}
|
||||
|
||||
return slave;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
|
||||
|
|
|
|||
Loading…
Reference in a new issue