vhost: fix access for indirect descriptors
authorTiwei Bie <tiwei.bie@intel.com>
Mon, 21 Jan 2019 08:12:18 +0000 (16:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 24 Jan 2019 09:08:31 +0000 (10:08 +0100)
commit48006390003b81f6d5c7b78e3f02ed49d1049945
treefe60a9500a25c27bdf76a7a8ed4e7f59637946ce
parent991a2e812fcfdba6d47b77462e06859262def583
vhost: fix access for indirect descriptors

Fix a possible out of bound access which may happen when handling
indirect descs in split ring.

Fixes: 1be4ebb1c464 ("vhost: support indirect descriptor in mergeable Rx")
Cc: stable@dpdk.org
Reported-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c