From: Anoob Joseph Date: Fri, 17 Dec 2021 09:19:51 +0000 (+0530) Subject: crypto/cnxk: clear session data before populating X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3d595524d36720d1da4cf73b4be8feed12fde1d5;p=dpdk.git crypto/cnxk: clear session data before populating Clear session data before populating fields to not have garbage data. Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- diff --git a/drivers/crypto/cnxk/cn10k_ipsec.c b/drivers/crypto/cnxk/cn10k_ipsec.c index 93eab1b7a1..1bd127ed6f 100644 --- a/drivers/crypto/cnxk/cn10k_ipsec.c +++ b/drivers/crypto/cnxk/cn10k_ipsec.c @@ -130,6 +130,8 @@ cn10k_ipsec_inb_sa_create(struct roc_cpt *roc_cpt, sa = &sess->sa; in_sa = &sa->in_sa; + memset(in_sa, 0, sizeof(struct roc_ot_ipsec_inb_sa)); + /* Translate security parameters to SA */ ret = cnxk_ot_ipsec_inb_sa_fill(in_sa, ipsec_xfrm, crypto_xfrm); if (ret)