summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2026-10-26 18:44:56 +0800
committerKeith Busch <kbusch@kernel.org>2026-10-28 08:11:23 -0700
commit11db8ab55e1a7533e9cfe57687ab142ba67d3c84 (patch)
treef4c7130b00139d541dab873f3368888dac5421d5 /tools/lib/python/kdoc
parent96da408bb4a24bf87b366b13f41c2687d3c05671 (diff)
nvmet-fc: Tear down the association when the admin queue allocation fails
When the initial admin queue allocation fails after a new association was created, nvmet_fc_ls_create_association() only drops the association reference, which frees the association. By then the association is already on the target port's assoc_list, though, and removal from that list only happens in nvmet_fc_delete_target_assoc(), which this error path never calls. The freed association stays on the list, where later lookups and the port teardown can access it, and the target port reference taken at allocation time leaks. A remote host can trigger this reliably with a Create Association LS requesting a queue too large to allocate. Schedule the regular association teardown instead of dropping the reference directly. The teardown removes the association from the list and releases the target port reference before the final reference drop frees it. Fixes: 0cab4404874f ("nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association") Cc: stable@vger.kernel.org Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions