Replace mempool_put with memset 0, the internal session memory block is no longer allocated from a mempool
Fixes: 3f3fc3308bd0 ("security: remove private mempool usage") Cc: gak...@marvell.com Signed-off-by: Radu Nicolau <radu.nico...@intel.com> --- drivers/net/iavf/iavf_ipsec_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ipsec_crypto.c b/drivers/net/iavf/iavf_ipsec_crypto.c index afd7f8f467..46a77afa27 100644 --- a/drivers/net/iavf/iavf_ipsec_crypto.c +++ b/drivers/net/iavf/iavf_ipsec_crypto.c @@ -1042,7 +1042,7 @@ iavf_ipsec_crypto_session_destroy(void *device, return -EINVAL; ret = iavf_ipsec_crypto_sa_del(adapter, iavf_sess); - rte_mempool_put(rte_mempool_from_obj(iavf_sess), (void *)iavf_sess); + memset(iavf_sess, 0, sizeof(struct iavf_security_session)); return ret; } -- 2.25.1