kernel/drivers/nvme/target/fc.c
.. .. @@ -1675,8 +1675,10 @@ 1675 1675 else { 1676 1676 queue = nvmet_fc_alloc_target_queue(iod->assoc, 0, 1677 1677 be16_to_cpu(rqst->assoc_cmd.sqsize)); 1678 - if (!queue)1678 + if (!queue) {1679 1679 ret = VERR_QUEUE_ALLOC_FAIL; 1680 + nvmet_fc_tgt_a_put(iod->assoc);1681 + }1680 1682 } 1681 1683 } 1682 1684