nvmet-rdma: Fix error handling
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 19 Feb 2017 19:04:38 +0000 (20:04 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
According to the preceeding goto, it is likely that 'out_destroy_sq' was
expected here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/rdma.c

index 5d189c0129434896fced874bac9fd37461dc87c3..9aa1da3778b3ac1d2262bfe9b845b65b9cd942d9 100644 (file)
@@ -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);