Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a7bae8a authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarMans Rullgard <mans@mansr.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 459421cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);