git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/crypto: fix PMDs memory leak
[dpdk.git]
/
drivers
/
crypto
/
octeontx
/
otx_cryptodev.c
diff --git
a/drivers/crypto/octeontx/otx_cryptodev.c
b/drivers/crypto/octeontx/otx_cryptodev.c
index
43933dd
..
b201e0a
100644
(file)
--- a/
drivers/crypto/octeontx/otx_cryptodev.c
+++ b/
drivers/crypto/octeontx/otx_cryptodev.c
@@
-100,10
+100,13
@@
otx_cpt_pci_remove(struct rte_pci_device *pci_dev)
if (rte_eal_process_type() == RTE_PROC_PRIMARY)
rte_free(cryptodev->data->dev_private);
if (rte_eal_process_type() == RTE_PROC_PRIMARY)
rte_free(cryptodev->data->dev_private);
- cryptodev->device = NULL;
cryptodev->device->driver = NULL;
cryptodev->device->driver = NULL;
+ cryptodev->device = NULL;
cryptodev->data = NULL;
cryptodev->data = NULL;
+ /* free metapool memory */
+ cleanup_global_resources();
+
return 0;
}
return 0;
}