forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
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