diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-21 08:52:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-01 16:33:01 +0100 |
commit | d12a26b74fb77434b73fe39022266c4b00907219 (patch) | |
tree | 4d79cdfe38a5995d60bc06d0dbe3df40130185af /sound/ppc | |
parent | 0b068c714ca9479d2783cc333fff5bc2d4a6d45c (diff) | |
download | linux-stable-d12a26b74fb77434b73fe39022266c4b00907219.tar.gz linux-stable-d12a26b74fb77434b73fe39022266c4b00907219.tar.bz2 linux-stable-d12a26b74fb77434b73fe39022266c4b00907219.zip |
virtio_net: avoid data-races on dev->stats fields
Use DEV_STATS_INC() and DEV_STATS_READ() which provide
atomicity on paths that can be used concurrently.
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/ppc')
0 files changed, 0 insertions, 0 deletions