Blame SOURCES/0120-scsi-scsi-qla2xxx-qla2x00_alloc_fw_dump-set-ha-eft.patch

3c6e85
From 8823763ab0d04b7a5062fdfc35d89f2e46edd8ae Mon Sep 17 00:00:00 2001
3c6e85
From: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Date: Wed, 4 Sep 2019 21:04:18 -0400
3c6e85
Subject: [PATCH 120/124] [scsi] scsi: qla2xxx: qla2x00_alloc_fw_dump: set
3c6e85
 ha->eft
3c6e85
3c6e85
Message-id: <20190904210419.3503-2-hmadhani@redhat.com>
3c6e85
Patchwork-id: 270921
3c6e85
O-Subject: [RHEL7.8 e-stor PATCH 1/2] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft
3c6e85
Bugzilla: 1749039
3c6e85
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
3c6e85
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
3c6e85
RH-Acked-by: Maurizio Lombardi <mlombard@redhat.com>
3c6e85
RH-Acked-by: Ewan Milne <emilne@redhat.com>
3c6e85
3c6e85
From: Martin Wilck <mwilck@suse.com>
3c6e85
3c6e85
Bugzilla 1749039
3c6e85
3c6e85
In qla2x00_alloc_fw_dump(), an existing EFT buffer (e.g. from previous
3c6e85
invocation of qla2x00_alloc_offload_mem()) is freed.  The buffer is then
3c6e85
re-allocated, but without setting the eft and eft_dma fields to the new
3c6e85
values.
3c6e85
3c6e85
Fixes: a28d9e4ef997 ("scsi: qla2xxx: Add support for multiple fwdump templates/segments")
3c6e85
Cc: Joe Carnuccio <joe.carnuccio@cavium.com>
3c6e85
Cc: Quinn Tran <qutran@marvell.com>
3c6e85
Cc: Himanshu Madhani <hmadhani@marvell.com>
3c6e85
Cc: Bart Van Assche <bvanassche@acm.org>
3c6e85
Signed-off-by: Martin Wilck <mwilck@suse.com>
3c6e85
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
3c6e85
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
3c6e85
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
3c6e85
(cherry picked from commit edbd56472a636ab396f5ee6783e8438fa725a6ee)
3c6e85
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Signed-off-by: Jan Stancek <jstancek@redhat.com>
3c6e85
---
3c6e85
 drivers/scsi/qla2xxx/qla_init.c | 2 ++
3c6e85
 1 file changed, 2 insertions(+)
3c6e85
3c6e85
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
3c6e85
index 00b85cb99db1..52d336706349 100644
3c6e85
--- a/drivers/scsi/qla2xxx/qla_init.c
3c6e85
+++ b/drivers/scsi/qla2xxx/qla_init.c
3c6e85
@@ -3278,6 +3278,8 @@ try_eft:
3c6e85
 		ql_dbg(ql_dbg_init, vha, 0x00c3,
3c6e85
 		    "Allocated (%d KB) EFT ...\n", EFT_SIZE / 1024);
3c6e85
 		eft_size = EFT_SIZE;
3c6e85
+		ha->eft_dma = tc_dma;
3c6e85
+		ha->eft = tc;
3c6e85
 	}
3c6e85
 
3c6e85
 	if (IS_QLA27XX(ha) || IS_QLA28XX(ha)) {
3c6e85
-- 
3c6e85
2.13.6
3c6e85