Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309492
b: refs/heads/master
c: 20571d8
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and David S. Miller committed May 30, 2012
1 parent 7f72213 commit 57d6fff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acaf8276823302983d681c2cedaaf01918406935
refs/heads/master: 20571d8894d1ee5a181e34e8d07ed8472acd30c4
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/rdc/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,8 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
err_out_mdio:
mdiobus_free(lp->mii_bus);
err_out_unmap:
netif_napi_del(&lp->napi);
pci_set_drvdata(pdev, NULL);
pci_iounmap(pdev, ioaddr);
err_out_free_res:
pci_release_regions(pdev);
Expand All @@ -1253,6 +1255,9 @@ static void __devexit r6040_remove_one(struct pci_dev *pdev)
mdiobus_unregister(lp->mii_bus);
kfree(lp->mii_bus->irq);
mdiobus_free(lp->mii_bus);
netif_napi_del(&lp->napi);
pci_set_drvdata(pdev, NULL);
pci_iounmap(pdev, lp->base);
pci_release_regions(pdev);
free_netdev(dev);
pci_disable_device(pdev);
Expand Down

0 comments on commit 57d6fff

Please sign in to comment.