From: Denis Kirjanov Date: Sun, 29 Aug 2010 21:21:38 +0000 (+0000) Subject: pxa168_eth: fix a mdiobus leak X-Git-Tag: MMI-PSA29.97-13-9~22097^2~142 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c01ae58d4fee39e2af5b1379ee5431dd585cf62;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git pxa168_eth: fix a mdiobus leak mdiobus resources must be released on exit Signed-off-by: Denis Kirjanov Acked-by: Dan Carpenter Signed-off-by: David S. Miller --- 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) 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);