Skip to content

Commit 1f61def

Browse files
Max Gurtovoyaxboe
authored andcommitted
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@mellanox.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 43b92fd commit 1f61def

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nvme/host/rdma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static int nvme_rdma_create_queue_ib(struct nvme_rdma_queue *queue)
493493
return 0;
494494

495495
out_destroy_qp:
496-
ib_destroy_qp(queue->qp);
496+
rdma_destroy_qp(queue->cm_id);
497497
out_destroy_ib_cq:
498498
ib_free_cq(queue->ib_cq);
499499
out_put_dev:

0 commit comments

Comments
 (0)