From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fan Zhang Subject: [PATCH] vhost/crypto: fix missing head correction Date: Fri, 27 Apr 2018 14:52:33 +0100 Message-ID: <20180427135233.56019-1-roy.fan.zhang@intel.com> Cc: roy.fan.zhang@intel.com, maxime.coquelin@redhat.com, ferruh.yigit@intel.com To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2C5798D9D for ; Fri, 27 Apr 2018 15:59:58 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: 473387aaae4a ("vhost/crypto: move to safe GPA translation API") This patch fixes the missing head descriptor correction for indirect descriptors. Signed-off-by: Fan Zhang --- 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 c38eb3bb5..81fab7e94 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.13.6