mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +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
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user