diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-05-15 13:35:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-15 23:36:42 -0400 |
commit | 81c708068dfedece038e07d818ba68333d8d885d (patch) | |
tree | 6f1d18c4b1ff8131ab0c52b3ec41966a7a457961 /drivers/net | |
parent | 583757446ba6850eff96cef6565d729266da9c5b (diff) | |
download | talos-obmc-linux-81c708068dfedece038e07d818ba68333d8d885d.tar.gz talos-obmc-linux-81c708068dfedece038e07d818ba68333d8d885d.zip |
bonding: fix out of range parameters for bond_intmax_tbl
I've missed to add a NULL entry to the bond_intmax_tbl when I introduced
it with the conversion of arp_interval so add it now.
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Fixes: 7bdb04ed0dbf ("bonding: convert arp_interval to use the new option API")
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bonding/bond_options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index 724e30fa20b9..832070298446 100644 --- a/drivers/net/bonding/bond_options.c +++ b/drivers/net/bonding/bond_options.c @@ -125,6 +125,7 @@ static const struct bond_opt_value bond_fail_over_mac_tbl[] = { static const struct bond_opt_value bond_intmax_tbl[] = { { "off", 0, BOND_VALFLAG_DEFAULT}, { "maxval", INT_MAX, BOND_VALFLAG_MAX}, + { NULL, -1, 0} }; static const struct bond_opt_value bond_lacp_rate_tbl[] = { |