提交 998722d1 编写于 作者: J Joe Carnuccio 提交者: Martin K. Petersen

scsi: qla2xxx: Skip zero queue count entry during FW dump capture

If queue count is zero while reading FW dump template, for entry
T263/T274, skip capturing those entries during FW dump capture.
Signed-off-by: NJoe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: NHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 a07fc0a4
...@@ -449,8 +449,12 @@ qla27xx_fwdt_entry_t263(struct scsi_qla_host *vha, ...@@ -449,8 +449,12 @@ qla27xx_fwdt_entry_t263(struct scsi_qla_host *vha,
qla27xx_skip_entry(ent, buf); qla27xx_skip_entry(ent, buf);
} }
if (buf) if (buf) {
ent->t263.num_queues = count; if (count)
ent->t263.num_queues = count;
else
qla27xx_skip_entry(ent, buf);
}
return false; return false;
} }
...@@ -704,11 +708,12 @@ qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha, ...@@ -704,11 +708,12 @@ qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha,
qla27xx_skip_entry(ent, buf); qla27xx_skip_entry(ent, buf);
} }
if (buf) if (buf) {
ent->t274.num_queues = count; if (count)
ent->t274.num_queues = count;
if (!count) else
qla27xx_skip_entry(ent, buf); qla27xx_skip_entry(ent, buf);
}
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册