Commit 438b365a authored by Bruce Allan's avatar Bruce Allan Committed by David S. Miller
Browse files

e1000e: check return of pci_save_state

Check return of pci_save_state and error out accordingly.

Signed-off-by: default avatarBruce Allan <>
Signed-off-by: default avatarJeff Kirsher <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1605927f
......@@ -4802,7 +4802,10 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
goto err_pci_reg;
/* PCI config space info */
err = pci_save_state(pdev);
if (err)
goto err_alloc_etherdev;
err = -ENOMEM;
netdev = alloc_etherdev(sizeof(struct e1000_adapter));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment