From: Fan Zhang Date: Fri, 27 Apr 2018 13:52:33 +0000 (+0100) Subject: vhost/crypto: fix missing head correction X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d4cc4c65dfb46d4262479daecbf5d3281dc68e6a;p=dpdk.git 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 --- 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; }