vhost: fix buffer length calculation
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 17 Jul 2018 13:10:35 +0000 (21:10 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit04651f72d1d2724de2823505b4d30fac780ad5fe
tree5d0e1fec1ed77154dde9a30541ed66a7587a67a2
parent4a61f16444541c2fa13e345af0a3c3532434a93a
vhost: fix buffer length calculation

Fixes: fd68b4739d2c ("vhost: use buffer vectors in dequeue path")

Reported-by: Yinan Wang <yinan.wang@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Zhihong Wang <zhihong.wang@intel.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
lib/librte_vhost/virtio_net.c