Skip to content

Commit

Permalink
pxa168_eth: fix a mdiobus leak
Browse files Browse the repository at this point in the history
mdiobus resources must be released on exit

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Acked-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Sep 1, 2010
1 parent 0f04cfd commit 9c01ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/pxa168_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,8 @@ static int pxa168_eth_remove(struct platform_device *pdev)

iounmap(pep->base);
pep->base = NULL;
mdiobus_unregister(pep->smi_bus);
mdiobus_free(pep->smi_bus);
unregister_netdev(dev);
flush_scheduled_work();
free_netdev(dev);
Expand Down

0 comments on commit 9c01ae5

Please sign in to comment.