diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2009-03-24 12:07:58 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-03 10:22:45 -0400 |
commit | 7d9dade34b72a0fe12a0ac63259b4810602736fe (patch) | |
tree | 56e9f7caa1da8baeb5b55000721dde9f6b09ea6b /drivers/scsi | |
parent | 94279edece858ce68ed20428a5df995750a3dcff (diff) |
[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 <giridhar.malavali@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-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 87f9abc71460..1d28b5335648 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) | |||
816 | qla_printk(KERN_INFO, ha, "Allocated (%d KB) for FCE...\n", | 816 | qla_printk(KERN_INFO, ha, "Allocated (%d KB) for FCE...\n", |
817 | FCE_SIZE / 1024); | 817 | FCE_SIZE / 1024); |
818 | 818 | ||
819 | fce_size = sizeof(struct qla2xxx_fce_chain) + EFT_SIZE; | 819 | fce_size = sizeof(struct qla2xxx_fce_chain) + FCE_SIZE; |
820 | ha->flags.fce_enabled = 1; | 820 | ha->flags.fce_enabled = 1; |
821 | ha->fce_dma = tc_dma; | 821 | ha->fce_dma = tc_dma; |
822 | ha->fce = tc; | 822 | ha->fce = tc; |