From: Ethan Jackson Date: Tue, 19 Apr 2011 21:11:23 +0000 (-0700) Subject: bond: bond_stb_enable_slave() never triggered. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9019cbdfe19b82cd0b212e64205913f62777e4f9;p=openvswitch bond: bond_stb_enable_slave() never triggered. bond_stb_enable_slave() depended on bond->stb_slaves being nonnull. However, bond_stb_enable_slave() is responsible for initializing this parameter. Thus none of it's logic ever ran. --- diff --git a/lib/bond.c b/lib/bond.c index d3b0e30a..5306bf44 100644 --- a/lib/bond.c +++ b/lib/bond.c @@ -1321,7 +1321,7 @@ bond_stb_enable_slave(struct bond_slave *slave) { struct bond *bond = slave->bond; - if (!bond->stb_slaves) { + if (bond->balance != BM_STABLE) { return; }