net/iavf: fix security session destroy
Replace mempool_put with memset 0, the internal session memory block
is no longer allocated from a mempool
Fixes: 3f3fc3308b
("security: remove private mempool usage")
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
This commit is contained in:
parent
31f15787b5
commit
d4de49b7a7
@ -1034,7 +1034,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user