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)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 13:18:46 +0000 (14:18 +0100)
commit0cab4404874f2de52617de8400c844891c6ea1ce
tree9ceccea79cc7da76f4f1f50b6faa885e15bfb16c
parent81ea42b9c3d61ea34d82d900ed93f4b4851f13b0
nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association

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>
drivers/nvme/target/fc.c