Commit 1df627b4 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: qla2xxx: Do not corrupt vha->plogi_ack_list

Delete the PLOGIN ACK data structure from the vha->plogi_ack_list before
freeing that data structure to avoid that that list gets corrupted.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Tested-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
Reviewed-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b3e9772d
...@@ -5083,8 +5083,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e) ...@@ -5083,8 +5083,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e)
"%s %8phC mem alloc fail.\n", "%s %8phC mem alloc fail.\n",
__func__, e->u.new_sess.port_name); __func__, e->u.new_sess.port_name);
if (pla) if (pla) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla); kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
return; return;
} }
...@@ -5195,8 +5197,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e) ...@@ -5195,8 +5197,10 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e)
if (free_fcport) { if (free_fcport) {
qla2x00_free_fcport(fcport); qla2x00_free_fcport(fcport);
if (pla) if (pla) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla); kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
} }
} }
......
...@@ -4796,8 +4796,10 @@ static int qlt_handle_login(struct scsi_qla_host *vha, ...@@ -4796,8 +4796,10 @@ static int qlt_handle_login(struct scsi_qla_host *vha,
__func__, sess->port_name, sec); __func__, sess->port_name, sec);
} }
if (!conflict_sess) if (!conflict_sess) {
list_del(&pla->list);
kmem_cache_free(qla_tgt_plogi_cachep, pla); kmem_cache_free(qla_tgt_plogi_cachep, pla);
}
qlt_send_term_imm_notif(vha, iocb, 1); qlt_send_term_imm_notif(vha, iocb, 1);
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment