mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
[PATCH] skge: error handling on resume
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>
This commit is contained in:
parent
b35de2eb38
commit
edd702e847
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue