vhost: fix possible out of bound access in relay helpers
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 4 Jan 2019 04:06:38 +0000 (12:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit85936f0546ebf8309da0992495a7c4fafdd63d14
tree145c1df615379f565268832502a2a9a4c923ae39
parente218fa09f4a8e9ce21798ecf0582062e4a94d2b3
vhost: fix possible out of bound access in relay helpers

Fixes: b13ad2decc83 ("vhost: provide helpers for virtio ring relay")

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vdpa.c