virtio: fix out of range array access