]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Protect a SM state change
authorVladislav Zolotarov <vladz@broadcom.com>
Wed, 21 Jul 2010 05:59:01 +0000 (05:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2010 18:11:54 +0000 (11:11 -0700)
commit4b9bd1ce4ff180620c732880f753871a6ee18033
tree1eb2a88545d8ffe742648886b9da48446b6f0eb0
parentac20128c49e36b1bf30dbbf10bb13887cb850989
bnx2x: Protect a SM state change

Bug fix: Protect the statistics state machine state update with a
spinlock.  Otherwise there was a race condition that would cause the
statistics to stay enabled despite the fact that they were disabled in
the LINK_DOWN event handler.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_main.c