mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
7a01a6ea2c
commit
6ccaeb5600
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue