Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <bruce.w.allan@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1605927f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4802,7 +4802,10 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
		goto err_pci_reg;

	pci_set_master(pdev);
	pci_save_state(pdev);
	/* PCI config space info */
	err = pci_save_state(pdev);
	if (err)
		goto err_alloc_etherdev;

	err = -ENOMEM;
	netdev = alloc_etherdev(sizeof(struct e1000_adapter));