From: Wei Yongjun Date: Tue, 19 Jul 2016 11:33:10 +0000 (+0000) Subject: net: ethernet: nb8800: fix error handling of nb8800_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a7bae8a12140c164082100a917ed5f856afccfc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Wei Yongjun Acked-by: Mans Rullgard Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index dc2c35dce216..0d3aa1d170ec 100644 --- a/drivers/net/ethernet/aurora/nb8800.c +++ b/drivers/net/ethernet/aurora/nb8800.c @@ -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);