diff options
| author | Ewan D. Milne <emilne@redhat.com> | 2026-05-13 15:25:51 -0400 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-08-13 09:26:42 -0700 |
| commit | 22eb631bf86ee3246f47885e4fa94154a46863e4 (patch) | |
| tree | de8985a81eba7d4596544b8d165879ca4dbe5c8f /include | |
| parent | c05c86681170e381e24498257db3a879deb1ae89 (diff) | |
| download | linux-stable-22eb631bf86ee3246f47885e4fa94154a46863e4.tar.gz linux-stable-22eb631bf86ee3246f47885e4fa94154a46863e4.zip | |
nvme: nvme-fc: Fix nvme_fc_create_hw_io_queues() queue deletion in error path
nvme_fc_create_hw_io_queues() will call __nvme_fc_delete_hw_queue() for the
last queue on which __nvme_fc_create_hw_queue() reported an error when deleting
all the io queues if they cannot all be created. This is incorrect since the
last queue did not actually get created.
The most recent change to this code was commit 17a1ec08ce70 ("nvme/fc: simplify
error handling of nvme_fc_create_hw_io_queues") which moved the cleanup to the
delete_queues: label and changed the loop bounds, however the code was not
correct prior to this change in a different way. The original commit
e399441de911 ("nvme-fabrics: Add host support for FC transport") had a
different error which called __nvme_fc_delete_hw_queue() on queue index 0 which
is used for the admin queue.
Fix this by correcting the initial loop index when deleting the io queues.
Fixes: 17a1ec08ce70 ("nvme/fc: simplify error handling of nvme_fc_create_hw_io_queues")
Fixes: e399441de911 ("nvme-fabrics: Add host support for FC transport")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4-6
Reviewed-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
