diff options
author | Denis Kirjanov <dkirjanov@kernel.org> | 2010-08-29 17:21:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-01 17:29:34 -0400 |
commit | 9c01ae58d4fee39e2af5b1379ee5431dd585cf62 (patch) | |
tree | 0fc4f70ce749a5dcc32931d3214bfb1a8c90e171 /drivers/net/pxa168_eth.c | |
parent | 0f04cfd098fb81fded74e78ea1a1b86cc6c6c31e (diff) |
pxa168_eth: fix a mdiobus leak
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>
Diffstat (limited to 'drivers/net/pxa168_eth.c')
-rw-r--r-- | drivers/net/pxa168_eth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pxa168_eth.c b/drivers/net/pxa168_eth.c index 410ea0a61371..85eddda276bd 100644 --- a/drivers/net/pxa168_eth.c +++ b/drivers/net/pxa168_eth.c | |||
@@ -1606,6 +1606,8 @@ static int pxa168_eth_remove(struct platform_device *pdev) | |||
1606 | 1606 | ||
1607 | iounmap(pep->base); | 1607 | iounmap(pep->base); |
1608 | pep->base = NULL; | 1608 | pep->base = NULL; |
1609 | mdiobus_unregister(pep->smi_bus); | ||
1610 | mdiobus_free(pep->smi_bus); | ||
1609 | unregister_netdev(dev); | 1611 | unregister_netdev(dev); |
1610 | flush_scheduled_work(); | 1612 | flush_scheduled_work(); |
1611 | free_netdev(dev); | 1613 | free_netdev(dev); |