From 8823763ab0d04b7a5062fdfc35d89f2e46edd8ae Mon Sep 17 00:00:00 2001 From: Himanshu Madhani Date: Wed, 4 Sep 2019 21:04:18 -0400 Subject: [PATCH 120/124] [scsi] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft Message-id: <20190904210419.3503-2-hmadhani@redhat.com> Patchwork-id: 270921 O-Subject: [RHEL7.8 e-stor PATCH 1/2] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft Bugzilla: 1749039 RH-Acked-by: Jarod Wilson RH-Acked-by: Tony Camuso RH-Acked-by: Maurizio Lombardi RH-Acked-by: Ewan Milne From: Martin Wilck Bugzilla 1749039 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 Cc: Quinn Tran Cc: Himanshu Madhani Cc: Bart Van Assche Signed-off-by: Martin Wilck Tested-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Signed-off-by: Martin K. Petersen (cherry picked from commit edbd56472a636ab396f5ee6783e8438fa725a6ee) Signed-off-by: Himanshu Madhani Signed-off-by: Jan Stancek --- drivers/scsi/qla2xxx/qla_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 00b85cb99db1..52d336706349 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -3278,6 +3278,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)) { -- 2.13.6