Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122588
b: refs/heads/master
c: ea943d4
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Kirsher authored and David S. Miller committed Dec 12, 2008
1 parent 623aa6c commit 64255d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 293a4f28333a38aa75254bfb01a5102afc981809
refs/heads/master: ea943d41a8770857d50029fdc8fd111635c21a1f
20 changes: 17 additions & 3 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,12 @@ static int __devinit igb_probe(struct pci_dev *pdev,
if (err)
goto err_pci_reg;

pci_enable_pcie_error_reporting(pdev);
err = pci_enable_pcie_error_reporting(pdev);
if (err) {
dev_err(&pdev->dev, "pci_enable_pcie_error_reporting failed "
"0x%x\n", err);
/* non-fatal, continue */
}

pci_set_master(pdev);
pci_save_state(pdev);
Expand Down Expand Up @@ -1343,6 +1348,7 @@ static void __devexit igb_remove(struct pci_dev *pdev)
#ifdef CONFIG_IGB_DCA
struct e1000_hw *hw = &adapter->hw;
#endif
int err;

/* flush_scheduled work may reschedule our watchdog task, so
* explicitly disable watchdog tasks from being rescheduled */
Expand Down Expand Up @@ -1382,7 +1388,10 @@ static void __devexit igb_remove(struct pci_dev *pdev)

free_netdev(netdev);

pci_disable_pcie_error_reporting(pdev);
err = pci_disable_pcie_error_reporting(pdev);
if (err)
dev_err(&pdev->dev,
"pci_disable_pcie_error_reporting failed 0x%x\n", err);

pci_disable_device(pdev);
}
Expand Down Expand Up @@ -4495,7 +4504,12 @@ static pci_ers_result_t igb_io_slot_reset(struct pci_dev *pdev)
result = PCI_ERS_RESULT_RECOVERED;
}

pci_cleanup_aer_uncorrect_error_status(pdev);
err = pci_cleanup_aer_uncorrect_error_status(pdev);
if (err) {
dev_err(&pdev->dev, "pci_cleanup_aer_uncorrect_error_status "
"failed 0x%0x\n", err);
/* non-fatal, continue */
}

return result;
}
Expand Down

0 comments on commit 64255d9

Please sign in to comment.