crypto/octeontx2: reset session private data
[dpdk.git] / drivers / crypto / octeontx2 / otx2_cryptodev_ops.c
index ad292a0..c0aed61 100644 (file)
@@ -364,6 +364,9 @@ sym_session_configure(int driver_id, struct rte_crypto_sym_xform *xform,
                return -ENOMEM;
        }
 
+       memset(priv, 0, sizeof(struct cpt_sess_misc) +
+                       offsetof(struct cpt_ctx, fctx));
+
        misc = priv;
 
        for ( ; xform != NULL; xform = xform->next) {