]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/vhost.c
vhost: fix incorrect check in vhost_verify_ring_mappings
authorJia He <hejianet@gmail.com>
Wed, 28 Feb 2018 09:35:29 +0000 (01:35 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Mar 2018 16:17:47 +0000 (18:17 +0200)
commit9fac50c88d91ebf7a7d3d31f8520762ac24e12b9
treed386cfe618953aa78151c5624726548b5771b327
parentfb20fbb764aa1eb3014c7544ea3daa58bc7b4cd2
vhost: fix incorrect check in vhost_verify_ring_mappings

In commit 0ca1fd2d6878 ("vhost: Simplify ring verification checks"),
it checks the virtqueue desc mapping for 3 times.

Fixed: commit 0ca1fd2d6878 ("vhost: Simplify ring verification checks")
Signed-off-by: Jia He <jia.he@hxt-semitech.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/virtio/vhost.c