summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2008-11-21 16:51:33 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-21 16:51:33 -0800
commit438b365a2758c012393a7be24d31a9c06aa0a504 (patch)
tree625c1252188edc302c2e7dfdf2f12ad64ddff83b /drivers/net/e1000e
parent1605927fcee41fe205f1713725f47f0d52978489 (diff)
downloadlinux-stable-438b365a2758c012393a7be24d31a9c06aa0a504.tar.gz
linux-stable-438b365a2758c012393a7be24d31a9c06aa0a504.tar.bz2
linux-stable-438b365a2758c012393a7be24d31a9c06aa0a504.zip
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.c5
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,
goto err_pci_reg;
pci_set_master(pdev);
- pci_save_state(pdev);
+ /* PCI config space info */
+ err = pci_save_state(pdev);
+ if (err)
+ goto err_alloc_etherdev;
err = -ENOMEM;
netdev = alloc_etherdev(sizeof(struct e1000_adapter));