projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35de2e
)
[PATCH] skge: error handling on resume
author
Stephen Hemminger
<shemminger@osdl.org>
Thu, 15 Dec 2005 20:18:00 +0000
(12:18 -0800)
committer
Jeff Garzik
<jgarzik@pobox.com>
Sat, 24 Dec 2005 14:38:35 +0000
(09:38 -0500)
Also have to handle out of memory condition on resume.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/skge.c
patch
|
blob
|
history
diff --git
a/drivers/net/skge.c
b/drivers/net/skge.c
index
e812dbb
..
b8dfe33
100644
(file)
--- a/
drivers/net/skge.c
+++ b/
drivers/net/skge.c
@@
-3416,8
+3416,8
@@
static int skge_resume(struct pci_dev *pdev)
struct net_device *dev = hw->dev[i];
if (dev) {
netif_device_attach(dev);
- if (netif_running(dev))
-
skge_up
(dev);
+ if (netif_running(dev)
&& skge_up(dev)
)
+
dev_close
(dev);
}
}
return 0;