patch 'crypto/dpaa2_sec: fix memory leak' has been queued to stable release 21.11.9
Kevin Traynor
ktraynor at redhat.com
Wed Nov 27 18:17:11 CET 2024
Hi,
FYI, your patch has been queued to stable release 21.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/02/24. 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 are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/62527cb4bb813cf67951fa2e456516eae02e81dc
Thanks.
Kevin
---
>From 62527cb4bb813cf67951fa2e456516eae02e81dc Mon Sep 17 00:00:00 2001
From: Gagandeep Singh <g.singh at nxp.com>
Date: Tue, 6 Aug 2024 15:57:26 +0530
Subject: [PATCH] crypto/dpaa2_sec: fix memory leak
[ upstream commit 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 ]
fixing memory leak while creating the PDCP session
with invalid data.
Fixes: bef594ec5cc8 ("crypto/dpaa2_sec: support PDCP offload")
Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
---
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index 4e4fe4a54c..90bc9adfdc 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -3187,4 +3187,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
} else {
DPAA2_SEC_ERR("Invalid crypto type");
+ rte_free(priv);
return -EINVAL;
}
--
2.47.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2024-11-27 17:17:38.473848492 +0000
+++ 0004-crypto-dpaa2_sec-fix-memory-leak.patch 2024-11-27 17:17:38.153269000 +0000
@@ -1 +1 @@
-From 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 Mon Sep 17 00:00:00 2001
+From 62527cb4bb813cf67951fa2e456516eae02e81dc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 2cdf9308f8..e4109e8f0a 100644
+index 4e4fe4a54c..90bc9adfdc 100644
@@ -21 +22 @@
-@@ -3423,4 +3423,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
+@@ -3187,4 +3187,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
More information about the stable
mailing list