Skip to contentSkip to conversation

nvme-rdma: Fix nvme_rdma_create_queue_ib error flow

PATCH New Max Gurtovoy 2 participants 2 messages Nov 6, 2017 – Nov 7, 2017 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-rdma: Fix nvme_rdma_create_queue_ib error flow

QP object is created using rdma_cm api, therefore the destruction should use the same api for symmetry.

Signed-off-by Max Gurtovoy <maxg at mellanox.com>
---
 drivers/nvme/host/rdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/rdma.c +1 -1
index 0ebb539..957d626 100644
@@ -493,7 +493,7 @@ static int nvme_rdma_create_queue_ib(struct nvme_rdma_queue *queue)
 	return 0;
 
 out_destroy_qp:
-	ib_destroy_qp(queue->qp);
+	rdma_destroy_qp(queue->cm_id);
 out_destroy_ib_cq:
 	ib_free_cq(queue->ib_cq);
 out_put_dev:
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw

PATCH 1/1 nvme-rdma: Fix nvme_rdma_create_queue_ib error flow

Quoted 4 lines · Max Gurtovoy

QP object is created using rdma_cm api, therefore the destruction should use the same api for symmetry.

Signed-off-by Max Gurtovoy <maxg at mellanox.com>

Thanks, applied to nvme-4.15.