vhost-net: remove unlocked use of receive_queue
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 13 Mar 2011 21:00:52 +0000 (23:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 13 Mar 2011 21:08:19 +0000 (23:08 +0200)
commitde4d768a428d9de943dd6dc82bcd61742955cb6e
tree68b0d3c4b3ce4158664e65c2deb9bf59d3a5e028
parent783e3988544b94ff3918666b9f36866ac547fba1
vhost-net: remove unlocked use of receive_queue

Use of skb_queue_empty(&sock->sk->sk_receive_queue)
without taking the sk_receive_queue.lock is unsafe
or useless. Take it out.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c