net: ethernet: nb8800: fix error handling of nb8800_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 11:33:10 +0000 (11:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 21:46:00 +0000 (14:46 -0700)
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>
drivers/net/ethernet/aurora/nb8800.c

index dc2c35dce21681c6dc3579696dd6caa55ab22ed7..0d3aa1d170ec1583c3e0cc3e9877e38117f0fb4e 100644 (file)
@@ -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);