]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Change active slave quietly when bond is down
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Dec 2010 08:19:56 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2010 20:43:22 +0000 (12:43 -0800)
commitdcbf65ef01854a0bd14109d0aa69f2145c92e2e3
tree17502c5275b8f28563ccfd15f23fe85a5e2dabfe
parent893485336816014cd3610e13279b7ed84fd02f25
bonding: Change active slave quietly when bond is down

bond_change_active_slave() may be called when a slave is added, even
if the bond has not been brought up yet.  It may then attempt to send
packets, and further it may use mcast_work which is uninitialised
before the bond is brought up.  Add the necessary checks for
netif_running(bond->dev).

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c