aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/octeontx/otx_cryptodev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/octeontx/otx_cryptodev.c')
-rw-r--r--drivers/crypto/octeontx/otx_cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c
index 269f0456..b201e0a1 100644
--- a/drivers/crypto/octeontx/otx_cryptodev.c
+++ b/drivers/crypto/octeontx/otx_cryptodev.c
@@ -100,8 +100,8 @@ 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 */