[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:
Родитель
b35de2eb38
Коммит
edd702e847
|
@ -3416,8 +3416,8 @@ static int skge_resume(struct pci_dev *pdev)
|
||||||
struct net_device *dev = hw->dev[i];
|
struct net_device *dev = hw->dev[i];
|
||||||
if (dev) {
|
if (dev) {
|
||||||
netif_device_attach(dev);
|
netif_device_attach(dev);
|
||||||
if (netif_running(dev))
|
if (netif_running(dev) && skge_up(dev))
|
||||||
skge_up(dev);
|
dev_close(dev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче