projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1605927
)
e1000e: check return of pci_save_state
author
Bruce Allan
<bruce.w.allan@intel.com>
Sat, 22 Nov 2008 00:51:33 +0000
(16:51 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 22 Nov 2008 00:51:33 +0000
(16:51 -0800)
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>
drivers/net/e1000e/netdev.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/e1000e/netdev.c
b/drivers/net/e1000e/netdev.c
index ebbb9f061c876d0046be2658c8169cda351a2c00..ae6dce584d8591284ac693c12ef37fb9b5f6daee 100644
(file)
--- 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));
This page took
0.027327 seconds
and
5
git commands to generate.