提交 9c01ae58 编写于 作者: D Denis Kirjanov 提交者: David S. Miller

pxa168_eth: fix a mdiobus leak

mdiobus resources must be released on exit
Signed-off-by: NDenis Kirjanov <dkirjanov@kernel.org>
Acked-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0f04cfd0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册