nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association
authorAmit Engel <Amit.Engel@dell.com>
Mon, 23 Jan 2023 12:37:28 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:57:02 +0000 (12:57 +0100)
commit5ca46a04a5c30c498f696b0403adf59b2c1cec61
treec9eb8fd50e17ce052abcc9d7d768007f33fedbef
parent9ed522143f959630f8b7782ddc212900d8f609a9
nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association

[ Upstream commit 0cab4404874f2de52617de8400c844891c6ea1ce ]

As part of nvmet_fc_ls_create_association there is a case where
nvmet_fc_alloc_target_queue fails right after a new association with an
admin queue is created. In this case, no one releases the get taken in
nvmet_fc_alloc_target_assoc.  This fix is adding the missing put.

Signed-off-by: Amit Engel <Amit.Engel@dell.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/fc.c