vhost: fix possible dead loop in relay helpers
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 4 Jan 2019 04:06:39 +0000 (12:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit4e282bc6c531c74f3144f5e422fc51fe82b71a27
tree039a40574faf01f0ef0eca05215dfafcc7b65c73
parent85936f0546ebf8309da0992495a7c4fafdd63d14
vhost: fix possible dead loop in relay helpers

Fix a possible dead loop which may happen, e.g. when
driver created a loop in the desc list.

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