summaryrefslogtreecommitdiffstats
path: root/lib/test_rhashtable.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-01-06 16:18:53 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-07 21:35:04 -0500
commitf5992b72ebe0dde488fa8f706b887194020c66fc (patch)
tree86fb8320ceb68c4dbfb22c5100e5382c6528b89d /lib/test_rhashtable.c
parent6052cd1af86f9833b6b0b60d5d4787c4a06d65ea (diff)
downloadlinux-f5992b72ebe0dde488fa8f706b887194020c66fc.tar.bz2
tg3: Fix race condition in tg3_get_stats64().
The driver's ndo_get_stats64() method is not always called under RTNL. So it can race with driver close or ethtool reconfigurations. Fix the race condition by taking tp->lock spinlock in tg3_free_consistent() when freeing the tp->hw_stats memory block. tg3_get_stats64() is already taking tp->lock. Reported-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_rhashtable.c')
0 files changed, 0 insertions, 0 deletions