diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-07-13 03:47:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-14 17:36:58 -0400 |
commit | 548d28bd0eac840d122b691279ce9f4ce6ecbfb6 (patch) | |
tree | a12ae637b5457b93ca4890696fbcb9b492740557 | |
parent | a8a3e41c67d24eb12f9ab9680cbb85e24fcd9711 (diff) |
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 <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: David S. Miller <davem@davemloft.net>
Fixes: 9e5f5eebe765 ("bonding: convert ad_select to use the new option
API")
Reported-by: Karim Scheik <karim.scheik@prisma-solutions.at>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 3a451b6cd3d5..701f86cd5993 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -4068,7 +4068,7 @@ static int bond_check_params(struct bond_params *params) | |||
4068 | } | 4068 | } |
4069 | 4069 | ||
4070 | if (ad_select) { | 4070 | if (ad_select) { |
4071 | bond_opt_initstr(&newval, lacp_rate); | 4071 | bond_opt_initstr(&newval, ad_select); |
4072 | valptr = bond_opt_parse(bond_opt_get(BOND_OPT_AD_SELECT), | 4072 | valptr = bond_opt_parse(bond_opt_get(BOND_OPT_AD_SELECT), |
4073 | &newval); | 4073 | &newval); |
4074 | if (!valptr) { | 4074 | if (!valptr) { |