]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: fix the upper bound when trying to delete queues
authorJason Wang <jasowang@redhat.com>
Thu, 23 Apr 2015 06:21:34 +0000 (14:21 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Jul 2015 23:22:35 +0000 (18:22 -0500)
commitcf6c213981de2a54154b13fecee58e6cdc5aa504
treed68db09785a68847c878200815ae5f4d7f56ee95
parentcf3297868c57938028bfd2d8716f56c28a78d7e4
virtio-net: fix the upper bound when trying to delete queues

Virtqueue were indexed from zero, so don't delete virtqueue whose
index is n->max_queues * 2 + 1.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 27a46dcf5038e20451101ed2d5414aebf3846e27)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/virtio-net.c