summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2017-11-06 15:18:51 +0100
committerJens Axboe <axboe@kernel.dk>2017-11-11 03:53:25 +0100
commit1f61def985d896da5935ae85a69c79fc26c7952f (patch)
tree5762c7475d96949348b1aac5f24a8faf28b12090 /drivers
parentnvmet-rdma: update queue list during ib_device removal (diff)
downloadlinux-1f61def985d896da5935ae85a69c79fc26c7952f.tar.xz
linux-1f61def985d896da5935ae85a69c79fc26c7952f.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/host/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 03644ecf68d2..32e21ab1ae52 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -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: