From ea8f918ad8b5c731c4996d74f7afebff7ad96af3 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Sun, 20 May 2012 22:42:28 -0700 Subject: [PATCH] Refresh of destroy_cqs --- src/cma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cma.c b/src/cma.c index c32803d5..9cd34cf5 100755 --- a/src/cma.c +++ b/src/cma.c @@ -1096,10 +1096,10 @@ static void ucma_destroy_cqs(struct rdma_cm_id *id) if (id->recv_cq_channel) ibv_destroy_comp_channel(id->recv_cq_channel); - if (id->send_cq) + if (id->send_cq && (id->send_cq != id->recv_cq)) ibv_destroy_cq(id->send_cq); - if (id->send_cq_channel) + if (id->send_cq_channel && (id->send_cq_channel != id->recv_cq_channel)) ibv_destroy_comp_channel(id->send_cq_channel); } -- 2.46.0