Skip to content

Commit

Permalink
qla2xxx: Declaration error cause stack corruption.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Quinn Tran authored and Christoph Hellwig committed Sep 25, 2014
1 parent 9d35894 commit 93f2bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 93f2bd6

Please sign in to comment.