Skip to contentSkip to conversation

bonding: fix out of range parameters for bond_intmax_tbl

PATCH In review Nikolay Aleksandrov 3 participants 3 messages May 15, 2014 – May 16, 2014

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

PATCH 1/1 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 <[email protected]>
CC Veaceslav Falico <[email protected]>
CC Andy Gospodarek <[email protected]>
Fixes 7bdb04ed0dbf ("bonding: convert arp_interval to use the new

option API")

---
 drivers/net/bonding/bond_options.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/bonding/bond_options.c +1 -0
index 724e30fa20b9..832070298446 100644
@@ -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[] = {
Signature · 1 line
1.8.5.3
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Nikolay Aleksandrov

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 <[email protected]>
CC Veaceslav Falico <[email protected]>
Quoted 24 lines
CC Andy Gospodarek <[email protected]>
Fixes 7bdb04ed0dbf ("bonding: convert arp_interval to use the new

option API")

---
drivers/net/bonding/bond_options.c | 1 +

1 file changed, 1 insertion(+)
drivers/net/bonding/bond_options.c +1 -0
index 724e30fa20b9..832070298446 100644
@@ -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[] = {
Signature · 1 line
1.8.5.3
maintainer
#2 lore raw
In reply to Nikolay Aleksandrov

From: Nikolay Aleksandrov <[email protected]>
Date: Thu, 15 May 2014 13:35:23 +0200

Quoted 9 lines

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 <[email protected]>
CC Veaceslav Falico <[email protected]>
CC Andy Gospodarek <[email protected]>
Fixes 7bdb04ed0dbf ("bonding: convert arp_interval to use the new option API")

Applied and queued up for -stable, thanks.