]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Fix race condition in tg3_get_stats64()
authorMichael Chan <mchan@broadcom.com>
Sun, 29 Jul 2012 19:15:44 +0000 (19:15 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:10 +0000 (15:23 +0800)
commit245ba0319083e39a3766a037c0526feb93d3af82
tree2a1e7ece01d6eb5da5a46ac68df1030c36cdebee
parentd808d0967b025821617e3d3de0afe6e8f683aa4b
tg3: Fix race condition in tg3_get_stats64()

Spinlock should be taken before checking for tp->hw_stats.

(cherry picked from commit 0f566b208b41918053b2e67399673aaec02dde5d)
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c