Skip to content

Commit

Permalink
net: ethernet: nb8800: fix error handling of nb8800_probe()
Browse files Browse the repository at this point in the history
In ops->reset() error handling case, clk_disable_unprepare() is missed
before return from this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Jul 20, 2016
1 parent 459421c commit 9a7bae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/aurora/nb8800.c
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ static int nb8800_probe(struct platform_device *pdev)
if (ops && ops->reset) {
ret = ops->reset(dev);
if (ret)
goto err_free_dev;
goto err_disable_clk;
}

bus = devm_mdiobus_alloc(&pdev->dev);
Expand Down

0 comments on commit 9a7bae8

Please sign in to comment.