From: Gagandeep Singh <g.si...@nxp.com>

Driver is doing memset on memory more than its allocation.
This patch fixes the size of memset.

Signed-off-by: Gagandeep Singh <g.si...@nxp.com>
---
 drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c 
b/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c
index 87a1a10268..51e316cc00 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c
@@ -1019,8 +1019,7 @@ dpaa2_sec_configure_raw_dp_ctx(struct rte_cryptodev *dev, 
uint16_t qp_id,
        RTE_SET_USED(qp_id);
 
        if (!is_update) {
-               memset(raw_dp_ctx, 0, sizeof(*raw_dp_ctx) +
-                               sizeof(dpaa2_sec_session));
+               memset(raw_dp_ctx, 0, sizeof(*raw_dp_ctx));
                raw_dp_ctx->qp_data = dev->data->queue_pairs[qp_id];
        }
 
-- 
2.17.1

Reply via email to