net/mlx5: fix event handler uninstall
[dpdk.git] / drivers / crypto / zuc / rte_zuc_pmd.c
index 997c209..637994d 100644 (file)
@@ -327,7 +327,8 @@ process_ops(struct rte_crypto_op **ops, enum zuc_operation op_type,
                if (ops[i]->sess_type == RTE_CRYPTO_OP_SESSIONLESS) {
                        memset(sessions[i], 0, sizeof(struct zuc_session));
                        memset(ops[i]->sym->session, 0,
-                                       rte_cryptodev_sym_get_header_session_size());
+                       rte_cryptodev_sym_get_existing_header_session_size(
+                                       ops[i]->sym->session));
                        rte_mempool_put(qp->sess_mp_priv, sessions[i]);
                        rte_mempool_put(qp->sess_mp, ops[i]->sym->session);
                        ops[i]->sym->session = NULL;