]> git.baikalelectronics.ru Git - kernel.git/commit
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:50:35 +0000 (12:50 +0100)
commitfdba07f4763ecce5a33b60bd5065680597538801
treecd0720957d6a7bf92469fe05fb4ce1f18e9b0a6e
parentf10ec66ab4bb6fcaa89223c454ee64e8e9914b92
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