From: Nikolay Aleksandrov Date: Wed, 13 Nov 2013 16:07:46 +0000 (+0100) Subject: bonding: fix two race conditions in bond_store_updelay/downdelay X-Git-Tag: v3.13-rc1~33^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b869ccfab1e324507fa3596e3e1308444fb68227;p=pandora-kernel.git 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 CC: Andy Gospodarek CC: Veaceslav Falico Signed-off-by: Nikolay Aleksandrov Acked-by: Veaceslav Falico Signed-off-by: David S. Miller --- Reading git-diff-tree failed