vhost/crypto: fix possible dead loop
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 4 Jan 2019 11:22:45 +0000 (11:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitc7e7244b82ad174a8ca51a385e6ad2eb508261d8
tree5d4200cfe2a687d87a5b159b0f78327de2600cf9
parent61ec8f58b040b2822cb5c33bb79e9e17b83fd45f
vhost/crypto: fix possible dead loop

This patch fixes a possible infinite loop caused by incorrect
descriptor chain created by the driver.

Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c