examples/vhost: fix header copy to discontiguous desc buffer
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 30 Apr 2018 09:35:22 +0000 (11:35 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:03 +0000 (22:31 +0100)
commit55dfc375cf65eebe11b740960656b099b90c25fe
treeedb6aa2ac872037919a14a261721dce3492b7778
parentbfbf0143d1002efae3d30986ad766de51f838b74
examples/vhost: fix header copy to discontiguous desc buffer

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