diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 14:11:48 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 15:38:57 -0300 |
commit | b0f76ad6fb9ff068754f12acc3a331669ce4f5c0 (patch) | |
tree | d91f1c03d241bbad639ea5c5a1cedecba8451838 /lib/librte_vhost | |
parent | 776aee4547a9a43a11b4fa8f7b37aa1ed83a8554 (diff) |
Imported Upstream version 16.07-rc5
Change-Id: I1780a4c3b475eaf7e08e8ea67fba3a5257daa39c
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'lib/librte_vhost')
-rw-r--r-- | lib/librte_vhost/vhost_rxtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index bc00518a..08a73fd0 100644 --- a/lib/librte_vhost/vhost_rxtx.c +++ b/lib/librte_vhost/vhost_rxtx.c @@ -748,7 +748,7 @@ copy_desc_to_mbuf(struct virtio_net *dev, struct vhost_virtqueue *vq, break; if (unlikely(desc->next >= vq->size || - ++nr_desc >= vq->size)) + ++nr_desc > vq->size)) return -1; desc = &vq->desc[desc->next]; |