We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422b19f commit 2b78832Copy full SHA for 2b78832
drivers/infiniband/hw/irdma/hw.c
@@ -585,9 +585,6 @@ static void irdma_destroy_cqp(struct irdma_pci_f *rf)
585
struct irdma_cqp *cqp = &rf->cqp;
586
int status = 0;
587
588
- if (rf->cqp_cmpl_wq)
589
- destroy_workqueue(rf->cqp_cmpl_wq);
590
-
591
status = irdma_sc_cqp_destroy(dev->cqp);
592
if (status)
593
ibdev_dbg(to_ibdev(dev), "ERR: Destroy CQP failed %d\n", status);
@@ -752,6 +749,9 @@ static void irdma_destroy_ccq(struct irdma_pci_f *rf)
752
749
struct irdma_ccq *ccq = &rf->ccq;
753
750
754
751
+ if (rf->cqp_cmpl_wq)
+ destroy_workqueue(rf->cqp_cmpl_wq);
+
755
if (!rf->reset)
756
status = irdma_sc_ccq_destroy(dev->ccq, 0, true);
757
0 commit comments