From d4cc4c65dfb46d4262479daecbf5d3281dc68e6a Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 27 Apr 2018 14:52:33 +0100 Subject: [PATCH] vhost/crypto: fix missing head correction This patch fixes the missing head descriptor correction for indirect descriptors. Fixes: 0aee2428419f ("vhost/crypto: move to safe GPA translation API") Signed-off-by: Fan Zhang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/vhost_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index c6fb2fe5f1..620a1df3dc 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -919,6 +919,7 @@ vhost_crypto_process_one_req(struct vhost_crypto *vcrypto, if (unlikely(!desc || dlen != head->len)) return -1; desc_idx = 0; + head = desc; } else { desc = head; } -- 2.20.1