diff --git a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c index 1db96c455..959755388 100644 --- a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c +++ b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c @@ -1536,11 +1536,12 @@ static int sqa_target_release(struct scst_tgt *scst_tgt) sqa_tgt->qla_tgt = NULL; list_del(&sqa_tgt->list); mutex_unlock(&sqa_mutex); - kfree(sqa_tgt); TRACE(TRACE_MGMT, "sqatgt(%ld/%d): Target release finished sqa_tgt %p", vha->host_no, tgt->vha->vp_idx, sqa_tgt); + kfree(sqa_tgt); + TRACE_EXIT(); return 0; }