diff options
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rwxr-xr-x | drivers/net/qla3xxx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index a142cdfd947b..91d91ca0a365 100755 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -3609,8 +3609,12 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev, | |||
3609 | } | 3609 | } |
3610 | 3610 | ||
3611 | ndev = alloc_etherdev(sizeof(struct ql3_adapter)); | 3611 | ndev = alloc_etherdev(sizeof(struct ql3_adapter)); |
3612 | if (!ndev) | 3612 | if (!ndev) { |
3613 | printk(KERN_ERR PFX "%s could not alloc etherdev\n", | ||
3614 | pci_name(pdev)); | ||
3615 | err = -ENOMEM; | ||
3613 | goto err_out_free_regions; | 3616 | goto err_out_free_regions; |
3617 | } | ||
3614 | 3618 | ||
3615 | SET_MODULE_OWNER(ndev); | 3619 | SET_MODULE_OWNER(ndev); |
3616 | SET_NETDEV_DEV(ndev, &pdev->dev); | 3620 | SET_NETDEV_DEV(ndev, &pdev->dev); |
@@ -3639,6 +3643,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev, | |||
3639 | if (!qdev->mem_map_registers) { | 3643 | if (!qdev->mem_map_registers) { |
3640 | printk(KERN_ERR PFX "%s: cannot map device registers\n", | 3644 | printk(KERN_ERR PFX "%s: cannot map device registers\n", |
3641 | pci_name(pdev)); | 3645 | pci_name(pdev)); |
3646 | err = -EIO; | ||
3642 | goto err_out_free_ndev; | 3647 | goto err_out_free_ndev; |
3643 | } | 3648 | } |
3644 | 3649 | ||
@@ -3667,6 +3672,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev, | |||
3667 | printk(KERN_ALERT PFX | 3672 | printk(KERN_ALERT PFX |
3668 | "ql3xxx_probe: Adapter #%d, Invalid NVRAM parameters.\n", | 3673 | "ql3xxx_probe: Adapter #%d, Invalid NVRAM parameters.\n", |
3669 | qdev->index); | 3674 | qdev->index); |
3675 | err = -EIO; | ||
3670 | goto err_out_iounmap; | 3676 | goto err_out_iounmap; |
3671 | } | 3677 | } |
3672 | 3678 | ||