vhost: fix possible out of bound access in vector filling
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 4 Jan 2019 04:06:40 +0000 (12:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit06fc8545fd6302f70de9ef5008a204e467d8cedb
tree8295adf222ac9f3065c0dc9f24d7636dbc016cb4
parent4e282bc6c531c74f3144f5e422fc51fe82b71a27
vhost: fix possible out of bound access in vector filling

Fixes: 7f74b95c444f ("vhost: pre update used ring for Tx and Rx")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c