]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cb96290f45570321a66630184339f3f11e2c2f4
tree210276bba9031e3df771084b87aacf5bfe4e0462
parent4359e7d1aa0304d00b0b7efe7c6b0c42c47609e0
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