]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: fix error loop in create_hw_io_queues
authorJames Smart <james.smart@broadcom.com>
Fri, 16 Oct 2020 21:06:04 +0000 (14:06 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 23 Oct 2020 10:54:23 +0000 (12:54 +0200)
commit5d8270dee271aeff70d6c816a4fabf137b0b77b5
tree315a03629876464a36c3ccf705f57ca251a69b30
parent63f30988f38d6dcd617e1dc23e42d58a730a201a
nvme-fc: fix error loop in create_hw_io_queues

The loop that backs out of hw io queue creation continues through index
0, which corresponds to the admin queue as well.

Fix the loop so it only proceeds through indexes 1..n which correspond to
I/O queues.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c