]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: fix race condition in several drivers when reading stats
authorKevin Groeneveld <kgroeneveld@gmail.com>
Sat, 21 Jul 2012 06:30:50 +0000 (06:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2012 19:12:32 +0000 (12:12 -0700)
commite3906486f616da7cc086a3ba06c0df4e5a48b4ab
tree573b6a99cf6f1e2958c59223d2e77ebe36e71ffa
parent0980e56e506b1e45022fad00bca8c8a974fda4e6
net: fix race condition in several drivers when reading stats

Fix race condition in several network drivers when reading stats on 32bit
UP architectures.  These drivers update their stats in a BH context and
therefore should use u64_stats_fetch_begin_bh/u64_stats_fetch_retry_bh
instead of u64_stats_fetch_begin/u64_stats_fetch_retry when reading the
stats.

Signed-off-by: Kevin Groeneveld <kgroeneveld@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c
drivers/net/ethernet/neterion/vxge/vxge-main.c
drivers/net/loopback.c
drivers/net/virtio_net.c
net/bridge/br_device.c