projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b92fd
)
nvme-rdma: fix nvme_rdma_create_queue_ib error flow
author
Max Gurtovoy
<maxg@mellanox.com>
Mon, 6 Nov 2017 14:18:51 +0000
(16:18 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000
(19:53 -0700)
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>
drivers/nvme/host/rdma.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/rdma.c
b/drivers/nvme/host/rdma.c
index
03644ec
..
32e21ab
100644
(file)
--- 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: