mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
bonding: uninitialized variable in bond_miimon_inspect()
The "ignore_updelay" variable needs to be initialized to false.
Fixes: f8a65ab2f3 ("bonding: fix link recovery in mode 2 when updelay is nonzero")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Pavan Chebbi <[email protected]>
Acked-by: Jay Vosburgh <[email protected]>
Link: https://lore.kernel.org/r/Y4SWJlh3ohJ6EPTL@kili
Signed-off-by: Paolo Abeni <[email protected]>
This commit is contained in:
committed by
Paolo Abeni
parent
46115b276b
commit
e5214f363d
@@ -2524,10 +2524,10 @@ static int bond_slave_info_query(struct net_device *bond_dev, struct ifslave *in
|
||||
/* called with rcu_read_lock() */
|
||||
static int bond_miimon_inspect(struct bonding *bond)
|
||||
{
|
||||
bool ignore_updelay = false;
|
||||
int link_state, commit = 0;
|
||||
struct list_head *iter;
|
||||
struct slave *slave;
|
||||
bool ignore_updelay;
|
||||
|
||||
if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP) {
|
||||
ignore_updelay = !rcu_dereference(bond->curr_active_slave);
|
||||
|
||||
Reference in New Issue
Block a user