scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft
authorMartin Wilck <mwilck@suse.com>
Wed, 14 Aug 2019 13:28:27 +0000 (13:28 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 01:50:56 +0000 (21:50 -0400)
In qla2x00_alloc_fw_dump(), an existing EFT buffer (e.g. from previous
invocation of qla2x00_alloc_offload_mem()) is freed.  The buffer is then
re-allocated, but without setting the eft and eft_dma fields to the new
values.

Fixes: a28d9e4ef997 ("scsi: qla2xxx: Add support for multiple fwdump templates/segments")
Cc: Joe Carnuccio <joe.carnuccio@cavium.com>
Cc: Quinn Tran <qutran@marvell.com>
Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c

index 535dc21ef56e7c83e69ae93491944cf6d6741b45..6dd68be611ef674b7a3787f3059e1eabcadb88df 100644 (file)
@@ -3197,6 +3197,8 @@ try_eft:
                ql_dbg(ql_dbg_init, vha, 0x00c3,
                    "Allocated (%d KB) EFT ...\n", EFT_SIZE / 1024);
                eft_size = EFT_SIZE;
+               ha->eft_dma = tc_dma;
+               ha->eft = tc;
        }
 
        if (IS_QLA27XX(ha) || IS_QLA28XX(ha)) {