hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/nvme/target/fc.c
....@@ -1675,8 +1675,10 @@
16751675 else {
16761676 queue = nvmet_fc_alloc_target_queue(iod->assoc, 0,
16771677 be16_to_cpu(rqst->assoc_cmd.sqsize));
1678
- if (!queue)
1678
+ if (!queue) {
16791679 ret = VERR_QUEUE_ALLOC_FAIL;
1680
+ nvmet_fc_tgt_a_put(iod->assoc);
1681
+ }
16801682 }
16811683 }
16821684