From: Christophe JAILLET Date: Sun, 19 Feb 2017 19:04:38 +0000 (+0100) Subject: nvmet-rdma: Fix error handling X-Git-Tag: v4.11-rc1~81^2~8 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=6ccaeb56004a14329b033968a687324c96d295bf;p=karo-tx-linux.git nvmet-rdma: Fix error handling According to the preceeding goto, it is likely that 'out_destroy_sq' was expected here. Signed-off-by: Christophe JAILLET Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c index 5d189c012943..9aa1da3778b3 100644 --- a/drivers/nvme/target/rdma.c +++ b/drivers/nvme/target/rdma.c @@ -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) { ret = NVME_RDMA_CM_NO_RSC; - goto out_free_queue; + goto out_destroy_sq; } ret = nvmet_rdma_alloc_rsps(queue);