]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:31 +0000 (23:18 -0700)
commitf9dd954529b012b09bf1a293be902b143baaa094
treeb07f2bcab010460c8a47272713abc95cc54395b8
parente54a6ed13cdd3d46400fb7c1d9c89df3dbbc1bde
tg3: Fix race condition in tg3_get_stats64()

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

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c