Skip to contentSkip to conversation

bonding: fix ad_select module param check

PATCH In review Nikolay Aleksandrov 2 participants 2 messages Jul 13, 2014 – Jul 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding: fix ad_select module param check

Obvious copy/paste error when I converted the ad_select to the new option API. "lacp_rate" there should be "ad_select" so we can get the proper value.

CC Jay Vosburgh <[email protected]>
CC Veaceslav Falico <[email protected]>
CC Andy Gospodarek <[email protected]>
CC David S. Miller <[email protected]>
Fixes 9e5f5eebe765 ("bonding: convert ad_select to use the new option

API")

---
 drivers/net/bonding/bond_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bonding/bond_main.c +1 -1
index 3a451b6cd3d5..701f86cd5993 100644
@@ -4068,7 +4068,7 @@ static int bond_check_params(struct bond_params *params)
 	}
 
 	if (ad_select) {
-		bond_opt_initstr(&newval, lacp_rate);
+		bond_opt_initstr(&newval, ad_select);
 		valptr = bond_opt_parse(bond_opt_get(BOND_OPT_AD_SELECT),
 					&newval);
 		if (!valptr) {
Signature · 1 line
1.9.3
maintainer
#1 lore raw

From: Nikolay Aleksandrov <[email protected]>
Date: Sun, 13 Jul 2014 09:47:47 +0200

Quoted 9 lines

Obvious copy/paste error when I converted the ad_select to the new option API. "lacp_rate" there should be "ad_select" so we can get the proper value.

CC Jay Vosburgh <[email protected]>
CC Veaceslav Falico <[email protected]>
CC Andy Gospodarek <[email protected]>
CC David S. Miller <[email protected]>
Quoted 4 lines
Fixes 9e5f5eebe765 ("bonding: convert ad_select to use the new option

API")

Applied and queued up for -stable, thanks.