Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45039
b: refs/heads/master
c: 7adda30
h: refs/heads/master
i:
  45037: b97f859
  45035: e68ba52
  45031: 83ddb7a
  45023: c6878ff
v: v3
  • Loading branch information
Brice Goglin authored and Jeff Garzik committed Dec 26, 2006
1 parent 6eff025 commit 8db77da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: a27993f3d9daca0dffa26577a83822db99c952e2
refs/heads/master: 7adda30c82f403c948b016a40fc68a1ef427dbca
12 changes: 10 additions & 2 deletions trunk/drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2641,6 +2641,10 @@ static void myri10ge_watchdog(struct work_struct *work)
* nic was resumed from power saving mode.
*/
myri10ge_restore_state(mgp);

/* save state again for accounting reasons */
myri10ge_save_state(mgp);

} else {
/* if we get back -1's from our slot, perhaps somebody
* powered off our card. Don't try to reset it in
Expand Down Expand Up @@ -2907,7 +2911,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
status = register_netdev(netdev);
if (status != 0) {
dev_err(&pdev->dev, "register_netdev failed: %d\n", status);
goto abort_with_irq;
goto abort_with_state;
}
dev_info(dev, "%s IRQ %d, tx bndry %d, fw %s, WC %s\n",
(mgp->msi_enabled ? "MSI" : "xPIC"),
Expand All @@ -2916,7 +2920,8 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

return 0;

abort_with_irq:
abort_with_state:
myri10ge_restore_state(mgp);
free_irq(pdev->irq, mgp);
if (mgp->msi_enabled)
pci_disable_msi(pdev);
Expand Down Expand Up @@ -2976,6 +2981,9 @@ static void myri10ge_remove(struct pci_dev *pdev)

myri10ge_dummy_rdma(mgp, 0);

/* avoid a memory leak */
myri10ge_restore_state(mgp);

bytes = myri10ge_max_intr_slots * sizeof(*mgp->rx_done.entry);
dma_free_coherent(&pdev->dev, bytes,
mgp->rx_done.entry, mgp->rx_done.bus);
Expand Down

0 comments on commit 8db77da

Please sign in to comment.