bonding: Fix initialize after use for 3ad machine state spinlock
authornikolay@redhat.com <nikolay@redhat.com>
Mon, 18 Feb 2013 07:59:03 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2013 05:51:08 +0000 (00:51 -0500)
commite0809dbc47dea83eba7a9abb70e87470904d4372
tree210276bba9031e3df771084b87aacf5bfe4e0462
parentb59340c2c0508d280f10658ad662fa56a39c74c2
bonding: Fix initialize after use for 3ad machine state spinlock

The 3ad machine state spinlock can be used before it is inititialized
while doing bond_enslave() (and the port is being initialized) since
port->slave is set before the lock is prepared, thus causing soft
lock-ups and a multitude of other nasty bugs.

[ Rename __initialize_port_locks() variable name to 'slave' -DaveM ]

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c