[dpdk-stable] patch 'vhost/crypto: fix inferred misuse of enum' has been queued to stable release 18.08.1
Kevin Traynor
ktraynor at redhat.com
Fri Nov 23 11:26:47 CET 2018
Hi,
FYI, your patch has been queued to stable release 18.08.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/29/18. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the patch applied
to the branch. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.
Thanks.
Kevin Traynor
---
>From 758086d0110dc6d1a939ac7e8db78f192d78141b Mon Sep 17 00:00:00 2001
From: Fan Zhang <roy.fan.zhang at intel.com>
Date: Thu, 1 Nov 2018 14:15:04 +0000
Subject: [PATCH] vhost/crypto: fix inferred misuse of enum
[ upstream commit d09328567e3212306b91d314a28214f81e0e9adf ]
Fix inffered misuse of enum rte_crypto_cipher_algorithm and
rte_crypto_auth_algorithm
Coverity issue: 277202
Fixes: e80a98708166 ("vhost/crypto: add session message handler")
Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
lib/librte_vhost/vhost_crypto.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c
index 57341ef8f..1affeddfe 100644
--- a/lib/librte_vhost/vhost_crypto.c
+++ b/lib/librte_vhost/vhost_crypto.c
@@ -239,5 +239,5 @@ transform_cipher_param(struct rte_crypto_sym_xform *xform,
xform->type = RTE_CRYPTO_SYM_XFORM_CIPHER;
- xform->cipher.algo = (uint32_t)ret;
+ xform->cipher.algo = (enum rte_crypto_cipher_algorithm)ret;
xform->cipher.key.length = param->cipher_key_len;
if (xform->cipher.key.length > 0)
@@ -289,5 +289,5 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms,
return ret;
xform_cipher->type = RTE_CRYPTO_SYM_XFORM_CIPHER;
- xform_cipher->cipher.algo = (uint32_t)ret;
+ xform_cipher->cipher.algo = (enum rte_crypto_cipher_algorithm)ret;
xform_cipher->cipher.key.length = param->cipher_key_len;
xform_cipher->cipher.key.data = param->cipher_key_buf;
@@ -303,5 +303,5 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms,
if (unlikely(ret < 0))
return ret;
- xform_auth->auth.algo = (uint32_t)ret;
+ xform_auth->auth.algo = (enum rte_crypto_auth_algorithm)ret;
xform_auth->auth.digest_length = param->digest_len;
xform_auth->auth.key.length = param->auth_key_len;
--
2.19.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2018-11-23 10:22:55.381234090 +0000
+++ 0043-vhost-crypto-fix-inferred-misuse-of-enum.patch 2018-11-23 10:22:54.000000000 +0000
@@ -1,14 +1,15 @@
-From d09328567e3212306b91d314a28214f81e0e9adf Mon Sep 17 00:00:00 2001
+From 758086d0110dc6d1a939ac7e8db78f192d78141b Mon Sep 17 00:00:00 2001
From: Fan Zhang <roy.fan.zhang at intel.com>
Date: Thu, 1 Nov 2018 14:15:04 +0000
Subject: [PATCH] vhost/crypto: fix inferred misuse of enum
+[ upstream commit d09328567e3212306b91d314a28214f81e0e9adf ]
+
Fix inffered misuse of enum rte_crypto_cipher_algorithm and
rte_crypto_auth_algorithm
Coverity issue: 277202
Fixes: e80a98708166 ("vhost/crypto: add session message handler")
-Cc: stable at dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
@@ -17,7 +18,7 @@
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c
-index 9811a232a..5472bead0 100644
+index 57341ef8f..1affeddfe 100644
--- a/lib/librte_vhost/vhost_crypto.c
+++ b/lib/librte_vhost/vhost_crypto.c
@@ -239,5 +239,5 @@ transform_cipher_param(struct rte_crypto_sym_xform *xform,
More information about the stable
mailing list