From 7d9dade34b72a0fe12a0ac63259b4810602736fe Mon Sep 17 00:00:00 2001 From: Giridhar Malavali Date: Tue, 24 Mar 2009 09:07:58 -0700 Subject: [PATCH] [SCSI] qla2xxx: Correct over-allocation of firmware-dump buffer. fce_size should be calculated based on the FCE_SIZE #define. Signed-off-by: Giridhar Malavali Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley --- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 87f9abc7146..1d28b533564 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -816,7 +816,7 @@ qla2x00_alloc_fw_dump(scsi_qla_host_t *vha) qla_printk(KERN_INFO, ha, "Allocated (%d KB) for FCE...\n", FCE_SIZE / 1024); - fce_size = sizeof(struct qla2xxx_fce_chain) + EFT_SIZE; + fce_size = sizeof(struct qla2xxx_fce_chain) + FCE_SIZE; ha->flags.fce_enabled = 1; ha->fce_dma = tc_dma; ha->fce = tc; -- 2.41.1