From dda53624b554eca902c35e0090b9a791a349c77f Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 11 Mar 2026 01:53:05 -0700 Subject: [PATCH] cndm: Fix CQ deinit ordering Signed-off-by: Alex Forencich --- src/cndm/modules/cndm/cndm_cq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cndm/modules/cndm/cndm_cq.c b/src/cndm/modules/cndm/cndm_cq.c index 81aff72..e3c4e51 100644 --- a/src/cndm/modules/cndm/cndm_cq.c +++ b/src/cndm/modules/cndm/cndm_cq.c @@ -130,6 +130,11 @@ void cndm_close_cq(struct cndm_cq *cq) cq->enabled = 0; + if (cq->eq) { + cndm_eq_detach_cq(cq->eq, cq); + cq->eq = NULL; + } + if (cq->cqn != -1) { cmd.opcode = CNDM_CMD_OP_DESTROY_CQ; cmd.flags = 0x00000000; @@ -143,11 +148,6 @@ void cndm_close_cq(struct cndm_cq *cq) cq->db_addr = NULL; } - if (cq->eq) { - cndm_eq_detach_cq(cq->eq, cq); - cq->eq = NULL; - } - if (cq->irq) { atomic_notifier_chain_unregister(&cq->irq->nh, &cq->irq_nb); cq->irq = NULL;