[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH V7 01/16] virtio-net: fix the upper bound when tryi
From: |
Jason Wang |
Subject: |
[Qemu-stable] [PATCH V7 01/16] virtio-net: fix the upper bound when trying to delete queues |
Date: |
Thu, 23 Apr 2015 14:21:34 +0800 |
Virtqueue were indexed from zero, so don't delete virtqueue whose
index is n->max_queues * 2 + 1.
Cc: Michael S. Tsirkin <address@hidden>
Cc: qemu-stable <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
---
hw/net/virtio-net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 59f76bc..b6fac9c 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -1309,7 +1309,7 @@ static void virtio_net_set_multiqueue(VirtIONet *n, int
multiqueue)
n->multiqueue = multiqueue;
- for (i = 2; i <= n->max_queues * 2 + 1; i++) {
+ for (i = 2; i < n->max_queues * 2 + 1; i++) {
virtio_del_queue(vdev, i);
}
--
2.1.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] [PATCH V7 01/16] virtio-net: fix the upper bound when trying to delete queues,
Jason Wang <=