]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: prevent race in statistics flow
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 13 Nov 2011 04:34:30 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2011 21:03:56 +0000 (16:03 -0500)
commit43494bb0d1844f86639a3e6683e82a57355218b9
tree5f9ae3a4eecfd197839dc9ba5ab2c67710a6945f
parent1998e04d3c47f490d19731d86b0c3272622a4a7d
bnx2x: prevent race in statistics flow

The race may cause access of registers while MAC hw block is
in reset state. As a result syslog will show error messages.
We can prevent this by using state from local variable.

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/ethernet/broadcom/bnx2x/bnx2x_stats.c