aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/devices/virtio/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c
index b02b79d385b..aeb519bb28d 100644
--- a/src/vnet/devices/virtio/pci.c
+++ b/src/vnet/devices/virtio/pci.c
@@ -693,7 +693,7 @@ virtio_pci_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 queue_num)
do
{
if (n_alloc < queue_size)
- n_alloc =
+ n_alloc +=
vlib_buffer_alloc (vm, vring->indirect_buffers + n_alloc,
queue_size - n_alloc);
}