scsi: qla2xxx: Fix fw dump corruption
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 2 Apr 2019 21:24:27 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:58 +0000 (23:45 -0400)
commita4226ec3ef1214b0973abdba64db66e10f6b0a1c
treebbe99ddc4df8cd4fe4cdeb4247f2017f629c0eb0
parente81d1bcbde06ad2b6413b1d75630a1a8c19175d0
scsi: qla2xxx: Fix fw dump corruption

If fw dump buffer size changes and there is an existing fw dump, then save
the old dump in the newly allocated buffer.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_init.c