Skip to content

Commit e5214f3

Browse files
error27Paolo Abeni
authored andcommitted
bonding: uninitialized variable in bond_miimon_inspect()
The "ignore_updelay" variable needs to be initialized to false. Fixes: f8a65ab ("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]>
1 parent 46115b2 commit e5214f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2524,10 +2524,10 @@ static int bond_slave_info_query(struct net_device *bond_dev, struct ifslave *in
25242524
/* called with rcu_read_lock() */
25252525
static int bond_miimon_inspect(struct bonding *bond)
25262526
{
2527+
bool ignore_updelay = false;
25272528
int link_state, commit = 0;
25282529
struct list_head *iter;
25292530
struct slave *slave;
2530-
bool ignore_updelay;
25312531

25322532
if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP) {
25332533
ignore_updelay = !rcu_dereference(bond->curr_active_slave);

0 commit comments

Comments
 (0)