bonding: fix out of range parameters for bond_intmax_tbl
Subsystems (3)
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")
Signed-off-by Nikolay Aleksandrov <[email protected]>
--- drivers/net/bonding/bond_options.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/bonding/bond_options.c +1 -0
@@ -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
Quoted 5 lines · Nikolay Aleksandrov
I've missed to add a NULL entry to the
bond_intmax_tblwhen I introduced it with the conversion ofarp_intervalso add it now.CC Jay Vosburgh <[email protected]>CC Veaceslav Falico <[email protected]>
Acked-by Veaceslav Falico <[email protected]>
Quoted 24 lines
CC Andy Gospodarek <[email protected]>Fixes 7bdb04ed0dbf ("bonding: convert arp_interval to use the newoption API")
Signed-off-by Nikolay Aleksandrov <[email protected]>---
drivers/net/bonding/bond_options.c| 1 +1 file changed, 1 insertion(+)drivers/net/bonding/bond_options.c +1
-0@@ -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
David Miller
maintainerFrom: 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_tblwhen I introduced it with the conversion ofarp_intervalso 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")Signed-off-by Nikolay Aleksandrov <[email protected]>
Applied and queued up for -stable, thanks.