Skip to content
Commit cf6c2139 authored by Jason Wang's avatar Jason Wang Committed by Michael Roth
Browse files

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: default avatarJason Wang <jasowang@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>

(cherry picked from commit 27a46dcf)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent cf329786
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment