scsi: qla2xxx: Initialize vha->unknown_atio_[list, work] for NPIV hosts
authorGleb Chesnokov <gleb.chesnokov@scst.dev>
Tue, 15 Nov 2022 09:38:08 +0000 (12:38 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 26 Nov 2022 00:27:40 +0000 (00:27 +0000)
commit95da5e58172cd3c58b82cb01e6cd157b6c5eabe9
tree803de87f471dbac8cabbc7561db6f4c298b8b692
parent3620e174d260adf88fa6511e8a20831cbddc4b66
scsi: qla2xxx: Initialize vha->unknown_atio_[list, work] for NPIV hosts

Initialization of vha->unknown_atio_list and vha->unknown_atio_work only
happens for base_vha in qlt_probe_one_stage1(). But there is no
initialization for NPIV hosts that are created in qla24xx_vport_create().

This causes a crash when trying to access these NPIV host fields.

Fix this by adding initialization to qla_vport_create().

Signed-off-by: Gleb Chesnokov <gleb.chesnokov@scst.dev>
Link: https://lore.kernel.org/r/376c89a2-a9ac-bcf9-bf0f-dfe89a02fd4b@scst.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c