diff options
author | Quinn Tran <quinn.tran@qlogic.com> | 2014-09-25 05:16:53 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-25 14:25:04 +0200 |
commit | 93f2bd67b34b4f6b35b2300d668d92e3fd01163a (patch) | |
tree | 34bd6990d22a871772af97b612344f667167dd99 | |
parent | 9d35894d338abc351cad8b0c0d5fb3e992f5cea9 (diff) | |
download | op-kernel-dev-93f2bd67b34b4f6b35b2300d668d92e3fd01163a.zip op-kernel-dev-93f2bd67b34b4f6b35b2300d668d92e3fd01163a.tar.gz |
qla2xxx: Declaration error cause stack corruption.
Declaration error of mb array in qla2x00_iidma_fcport cause data
to be written beyond the array. This ends up causing stack corruption.
Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index d5b10ec..ab22ccf 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -3192,7 +3192,7 @@ static void qla2x00_iidma_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) { int rval; - uint16_t mb[4]; + uint16_t mb[MAILBOX_REGISTER_COUNT]; struct qla_hw_data *ha = vha->hw; if (!IS_IIDMA_CAPABLE(ha)) |