From: Fan Zhang <roy.fan.zhang@intel.com>
To: dev@dpdk.org
Cc: roy.fan.zhang@intel.com, maxime.coquelin@redhat.com,
ferruh.yigit@intel.com
Subject: [dpdk-dev] [PATCH] vhost/crypto: fix missing head correction
Date: Fri, 27 Apr 2018 14:52:33 +0100 [thread overview]
Message-ID: <20180427135233.56019-1-roy.fan.zhang@intel.com> (raw)
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 <roy.fan.zhang@intel.com>
---
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
next reply other threads:[~2018-04-27 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 13:52 Fan Zhang [this message]
2018-04-27 14:19 ` Maxime Coquelin
2018-04-27 14:22 ` Zhang, Roy Fan
2018-04-27 17:38 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180427135233.56019-1-roy.fan.zhang@intel.com \
--to=roy.fan.zhang@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=maxime.coquelin@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).