diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 9d268be0b670..d47839184a06 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3427,8 +3427,8 @@ static int __devinit | |||
3427 | bnx2_request_firmware(struct bnx2 *bp) | 3427 | bnx2_request_firmware(struct bnx2 *bp) |
3428 | { | 3428 | { |
3429 | const char *mips_fw_file, *rv2p_fw_file; | 3429 | const char *mips_fw_file, *rv2p_fw_file; |
3430 | const struct bnx2_mips_fw_file *mips; | 3430 | const struct bnx2_mips_fw_file *mips_fw; |
3431 | const struct bnx2_rv2p_fw_file *rv2p; | 3431 | const struct bnx2_rv2p_fw_file *rv2p_fw; |
3432 | int rc; | 3432 | int rc; |
3433 | 3433 | ||
3434 | if (CHIP_NUM(bp) == CHIP_NUM_5709) { | 3434 | if (CHIP_NUM(bp) == CHIP_NUM_5709) { |
@@ -3452,21 +3452,21 @@ bnx2_request_firmware(struct bnx2 *bp) | |||
3452 | rv2p_fw_file); | 3452 | rv2p_fw_file); |
3453 | return rc; | 3453 | return rc; |
3454 | } | 3454 | } |
3455 | mips = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data; | 3455 | mips_fw = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data; |
3456 | rv2p = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data; | 3456 | rv2p_fw = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data; |
3457 | if (bp->mips_firmware->size < sizeof(*mips) || | 3457 | if (bp->mips_firmware->size < sizeof(*mips_fw) || |
3458 | check_mips_fw_entry(bp->mips_firmware, &mips->com) || | 3458 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->com) || |
3459 | check_mips_fw_entry(bp->mips_firmware, &mips->cp) || | 3459 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->cp) || |
3460 | check_mips_fw_entry(bp->mips_firmware, &mips->rxp) || | 3460 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->rxp) || |
3461 | check_mips_fw_entry(bp->mips_firmware, &mips->tpat) || | 3461 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->tpat) || |
3462 | check_mips_fw_entry(bp->mips_firmware, &mips->txp)) { | 3462 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->txp)) { |
3463 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", | 3463 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", |
3464 | mips_fw_file); | 3464 | mips_fw_file); |
3465 | return -EINVAL; | 3465 | return -EINVAL; |
3466 | } | 3466 | } |
3467 | if (bp->rv2p_firmware->size < sizeof(*rv2p) || | 3467 | if (bp->rv2p_firmware->size < sizeof(*rv2p_fw) || |
3468 | check_fw_section(bp->rv2p_firmware, &rv2p->proc1.rv2p, 8, true) || | 3468 | check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc1.rv2p, 8, true) || |
3469 | check_fw_section(bp->rv2p_firmware, &rv2p->proc2.rv2p, 8, true)) { | 3469 | check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc2.rv2p, 8, true)) { |
3470 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", | 3470 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", |
3471 | rv2p_fw_file); | 3471 | rv2p_fw_file); |
3472 | return -EINVAL; | 3472 | return -EINVAL; |