Commit 6ccaeb56 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jens Axboe
Browse files

nvmet-rdma: Fix error handling

According to the preceeding goto, it is likely that 'out_destroy_sq' was
expected here.
Signed-off-by: default avatarChristophe JAILLET <>
Reviewed-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarJens Axboe <>
parent 7a01a6ea
......@@ -1094,7 +1094,7 @@ nvmet_rdma_alloc_queue(struct nvmet_rdma_device *ndev,
queue->idx = ida_simple_get(&nvmet_rdma_queue_ida, 0, 0, GFP_KERNEL);
if (queue->idx < 0) {
goto out_free_queue;
goto out_destroy_sq;
ret = nvmet_rdma_alloc_rsps(queue);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment