]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f199b49dca5763ff5b8d813cf6672267fec74cc
treebbe99ddc4df8cd4fe4cdeb4247f2017f629c0eb0
parent5631a86790e7eb74ba100216650f4ae1e9386939
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