提交 9a7bae8a 编写于 作者: W Wei Yongjun 提交者: David S. Miller

net: ethernet: nb8800: fix error handling of nb8800_probe()

In ops->reset() error handling case, clk_disable_unprepare() is missed
before return from this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: NMans Rullgard <mans@mansr.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 459421cc
...@@ -1418,7 +1418,7 @@ static int nb8800_probe(struct platform_device *pdev) ...@@ -1418,7 +1418,7 @@ static int nb8800_probe(struct platform_device *pdev)
if (ops && ops->reset) { if (ops && ops->reset) {
ret = ops->reset(dev); ret = ops->reset(dev);
if (ret) if (ret)
goto err_free_dev; goto err_disable_clk;
} }
bus = devm_mdiobus_alloc(&pdev->dev); bus = devm_mdiobus_alloc(&pdev->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册