X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Focteontx%2Fotx_cryptodev.c;h=b201e0a1b12c0a2be9c3bbaf0a5720f50d701ca1;hb=a4d69a5150e3597df170f595784b4f0472cd98c4;hp=43933ddf0ddc59c15a39b46af7502f4efccfeeb7;hpb=bfe2ae495ee2682a79e1cc84b10914f37a82d3cf;p=dpdk.git diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c index 43933ddf0d..b201e0a1b1 100644 --- 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); - cryptodev->device = NULL; cryptodev->device->driver = NULL; + cryptodev->device = NULL; cryptodev->data = NULL; + /* free metapool memory */ + cleanup_global_resources(); + return 0; }