qla2x00t: Fix two buffer overflows

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-08-02 21:22:13 +00:00
parent 1b5e2eb482
commit 757b42c2ba
2 changed files with 2 additions and 2 deletions

View File

@@ -1754,7 +1754,7 @@ qla2x00_fw_state_show(struct device *dev, struct device_attribute *attr,
{
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
int rval = QLA_FUNCTION_FAILED;
uint16_t state[5];
uint16_t state[6];
if (qla2x00_reset_active(vha))
ql_log(ql_log_warn, vha, 0x707c,

View File

@@ -1922,7 +1922,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha)
unsigned long wtime, mtime, cs84xx_time;
uint16_t min_wait; /* Minimum wait time if loop is down */
uint16_t wait_time; /* Wait time if loop is coming ready */
uint16_t state[5];
uint16_t state[6];
struct qla_hw_data *ha = vha->hw;
if (!qla_firmware_active(vha)) {