mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
qla2x00t-32gbit, target: Suppress a Coverity use-after-free complaint
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user