qla2x00t-32gbit: Avoid corrupting vha->plogi_ack_list

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8191 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-04-13 22:53:24 +00:00
parent 88e87e1506
commit 3c4dcb4135
2 changed files with 9 additions and 3 deletions

View File

@@ -5130,8 +5130,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e)
"%s %s mem alloc fail.\n",
__func__, wwn_to_str(e->u.new_sess.port_name));
if (pla)
if (pla) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
return;
}
@@ -5241,8 +5243,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e)
if (free_fcport) {
qla2x00_free_fcport(fcport);
if (pla)
if (pla) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
}
}

View File

@@ -4933,8 +4933,10 @@ static int qlt_handle_login(struct scsi_qla_host *vha,
__func__, wwn_to_str(sess->port_name), sec);
}
if (!conflict_sess)
if (!conflict_sess) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
qlt_send_term_imm_notif(vha, iocb, 1);
goto out;