diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2008-11-21 19:51:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 19:51:33 -0500 |
commit | 438b365a2758c012393a7be24d31a9c06aa0a504 (patch) | |
tree | 625c1252188edc302c2e7dfdf2f12ad64ddff83b /drivers/net/e1000e | |
parent | 1605927fcee41fe205f1713725f47f0d52978489 (diff) |
e1000e: check return of pci_save_state
Check return of pci_save_state and error out accordingly.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index ebbb9f061c87..ae6dce584d85 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -4802,7 +4802,10 @@ static int __devinit e1000_probe(struct pci_dev *pdev, | |||
4802 | goto err_pci_reg; | 4802 | goto err_pci_reg; |
4803 | 4803 | ||
4804 | pci_set_master(pdev); | 4804 | pci_set_master(pdev); |
4805 | pci_save_state(pdev); | 4805 | /* PCI config space info */ |
4806 | err = pci_save_state(pdev); | ||
4807 | if (err) | ||
4808 | goto err_alloc_etherdev; | ||
4806 | 4809 | ||
4807 | err = -ENOMEM; | 4810 | err = -ENOMEM; |
4808 | netdev = alloc_etherdev(sizeof(struct e1000_adapter)); | 4811 | netdev = alloc_etherdev(sizeof(struct e1000_adapter)); |