Message ID | 1392960704-10871-3-git-send-email-devesh.sharma@emulex.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/src/ocrdma_verbs.c b/src/ocrdma_verbs.c index acf460f..96c5f78 100644 --- a/src/ocrdma_verbs.c +++ b/src/ocrdma_verbs.c @@ -356,9 +356,13 @@ int ocrdma_resize_cq(struct ibv_cq *ibcq, int new_entries) int ocrdma_destroy_cq(struct ibv_cq *ibv_cq) { struct ocrdma_cq *cq = get_ocrdma_cq(ibv_cq); + ibv_cmd_destroy_cq(ibv_cq); if (cq->db_va) munmap((void *)cq->db_va, cq->db_size); + if (cq->va) + munmap((void*)cq->va, cq->cq_mem_size); + free(cq); return 0; }