git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfbf014
)
examples/vhost: fix header copy to discontiguous desc buffer
author
Maxime Coquelin
<maxime.coquelin@redhat.com>
Mon, 30 Apr 2018 09:35:22 +0000
(11:35 +0200)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:03 +0000
(22:31 +0100)
In the loop to copy virtio-net header to the descriptor buffer,
destination pointer was incremented instead of the source
pointer.
Coverity issue: 277240
Fixes:
82c93a567d3b
("examples/vhost: move to safe GPA translation API")
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/virtio_net.c
patch
|
blob
|
history
diff --git
a/examples/vhost/virtio_net.c
b/examples/vhost/virtio_net.c
index
5a965a3
..
8ea6b36
100644
(file)
--- a/
examples/vhost/virtio_net.c
+++ b/
examples/vhost/virtio_net.c
@@
-103,7
+103,7
@@
enqueue_pkt(struct vhost_dev *dev, struct rte_vhost_vring *vr,
remain -= len;
guest_addr += len;
-
dst
+= len;
+
src
+= len;
}
desc_chunck_len = desc->len - dev->hdr_len;