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:59:44 +0000 (12:59 +0100)
commitfd646ac5403f9a6d693065edeb21fec2a8b19727
treeafb186c52e2bc881a92a8233c5e96b0fc0b2f387
parentf1eb22d0ff064ad458b3b1a1eaa84ac3996206c2
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