mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 09:29:42 +00:00
scsi: qla2xxx: Check for firmware dump already collected
commit cfbafad7c6
upstream.
While allocating firmware dump, check if dump is already collected and do
not re-allocate the buffer.
Link: https://lore.kernel.org/r/20220110050218.3958-17-njavali@marvell.com
Cc: stable@vger.kernel.org
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
812afc2b8e
commit
d1b7d23cd4
1 changed files with 8 additions and 0 deletions
|
@ -3463,6 +3463,14 @@ qla2x00_alloc_fw_dump(scsi_qla_host_t *vha)
|
||||||
struct rsp_que *rsp = ha->rsp_q_map[0];
|
struct rsp_que *rsp = ha->rsp_q_map[0];
|
||||||
struct qla2xxx_fw_dump *fw_dump;
|
struct qla2xxx_fw_dump *fw_dump;
|
||||||
|
|
||||||
|
if (ha->fw_dump) {
|
||||||
|
ql_dbg(ql_dbg_init, vha, 0x00bd,
|
||||||
|
"Firmware dump already allocated.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ha->fw_dumped = 0;
|
||||||
|
ha->fw_dump_cap_flags = 0;
|
||||||
dump_size = fixed_size = mem_size = eft_size = fce_size = mq_size = 0;
|
dump_size = fixed_size = mem_size = eft_size = fce_size = mq_size = 0;
|
||||||
req_q_size = rsp_q_size = 0;
|
req_q_size = rsp_q_size = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue