bnx2x: Fix the race on bp->stats_pending.
authorVladislav Zolotarov <vladz@broadcom.com>
Sun, 9 Jan 2011 02:20:34 +0000 (02:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jan 2011 23:47:47 +0000 (15:47 -0800)
commit9bcb8018cf7af1f00f35cad4b121897cac077269
tree17e73c7baed203c01208d279b4c357cd6b5b7ee9
parent084d6cbb13e351f48ecd87cc8718ace6b72845e8
bnx2x: Fix the race on bp->stats_pending.

Fix the race on bp->stats_pending between the timer and a LINK_UP event
handler.

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