[dpdk-stable] patch 'crypto/dpaa: fix session destroy' has been queued to LTS release 18.11.2

Kevin Traynor ktraynor at redhat.com
Tue Apr 30 19:01:30 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/07/19. 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. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches can be viewed on a temporary branch at:
	https://github.com/kevintraynor/dpdk-stable-queue.git

Thanks.

Kevin Traynor

---
>From 2fa3f31e26a3e3fe2fff2316bd6e7566d8049d34 Mon Sep 17 00:00:00 2001
From: Akhil Goyal <akhil.goyal at nxp.com>
Date: Wed, 17 Apr 2019 15:58:14 +0530
Subject: [PATCH] crypto/dpaa: fix session destroy

[ upstream commit 261fb941858cfe3df7960fa43976436d71af13a2 ]

Coverity issue: 336798
Fixes: 1f14d500bce1 ("crypto/dpaa_sec: support IPsec protocol offload")
Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec")

Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +-
 drivers/crypto/dpaa_sec/dpaa_sec.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index ec3111b29..a7973cc04 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -2865,5 +2865,5 @@ dpaa2_sec_security_session_destroy(void *dev __rte_unused,
 		rte_free(s->cipher_key.data);
 		rte_free(s->auth_key.data);
-		memset(sess, 0, sizeof(dpaa2_sec_session));
+		memset(s, 0, sizeof(dpaa2_sec_session));
 		set_sec_session_private_data(sess, NULL);
 		rte_mempool_put(sess_mp, sess_priv);
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c
index 8958fd06a..10201c58c 100644
--- a/drivers/crypto/dpaa_sec/dpaa_sec.c
+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c
@@ -2167,5 +2167,5 @@ dpaa_sec_security_session_destroy(void *dev __rte_unused,
 		rte_free(s->cipher_key.data);
 		rte_free(s->auth_key.data);
-		memset(sess, 0, sizeof(dpaa_sec_session));
+		memset(s, 0, sizeof(dpaa_sec_session));
 		set_sec_session_private_data(sess, NULL);
 		rte_mempool_put(sess_mp, sess_priv);
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-04-30 17:58:15.458098754 +0100
+++ 0035-crypto-dpaa-fix-session-destroy.patch	2019-04-30 17:58:13.820139513 +0100
@@ -1 +1 @@
-From 261fb941858cfe3df7960fa43976436d71af13a2 Mon Sep 17 00:00:00 2001
+From 2fa3f31e26a3e3fe2fff2316bd6e7566d8049d34 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 261fb941858cfe3df7960fa43976436d71af13a2 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 5b72b9ee4..0d273bb62 100644
+index ec3111b29..a7973cc04 100644
@@ -22 +23 @@
-@@ -2837,5 +2837,5 @@ dpaa2_sec_security_session_destroy(void *dev __rte_unused,
+@@ -2865,5 +2865,5 @@ dpaa2_sec_security_session_destroy(void *dev __rte_unused,
@@ -30 +31 @@
-index 8305f19a3..d9a7cd8a4 100644
+index 8958fd06a..10201c58c 100644
@@ -33 +34 @@
-@@ -2454,5 +2454,5 @@ dpaa_sec_security_session_destroy(void *dev __rte_unused,
+@@ -2167,5 +2167,5 @@ dpaa_sec_security_session_destroy(void *dev __rte_unused,


More information about the stable mailing list