bonding: fix ad_select module param check
Subsystems (3)
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")
Reported-by Karim Scheik <[email protected]>
Signed-off-by Nikolay Aleksandrov <[email protected]>
--- drivers/net/bonding/bond_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bonding/bond_main.c +1 -1
@@ -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
David Miller
maintainerFrom: 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_selectto 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 optionAPI")
Reported-by Karim Scheik <[email protected]>Signed-off-by Nikolay Aleksandrov <[email protected]>
Applied and queued up for -stable, thanks.