aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <[email protected]>2013-11-13 17:07:46 +0100
committerDavid S. Miller <[email protected]>2013-11-14 16:28:52 -0500
commitb869ccfab1e324507fa3596e3e1308444fb68227 (patch)
treeeb35bfa07b83170abf65fbd88841d013b573e255 /net/lapb/lapb_timer.c
parent98e09386c0ef4dfd48af7ba60ff908f0d525cdee (diff)
bonding: fix two race conditions in bond_store_updelay/downdelay
This patch fixes two race conditions between bond_store_updelay/downdelay and bond_store_miimon which could lead to division by zero as miimon can be set to 0 while either updelay/downdelay are being set and thus miss the zero check in the beginning, the zero div happens because updelay/downdelay are stored as new_value / bond->params.miimon. Use rtnl to synchronize with miimon setting. CC: Jay Vosburgh <[email protected]> CC: Andy Gospodarek <[email protected]> CC: Veaceslav Falico <[email protected]> Signed-off-by: Nikolay Aleksandrov <[email protected]> Acked-by: Veaceslav Falico <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions