net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init
authorWang Hai <wanghai38@huawei.com>
Mon, 10 Aug 2020 02:57:05 +0000 (10:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 09:02:10 +0000 (11:02 +0200)
commita37ac4f12765181fb20feb2095bdb3001812f4df
treea7fdaa1504ccb47c1d7fcc507b251f1cba2a1dc0
parentc238f9aa9dd84a8058ebfd6ec558336c45c698be
net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

[ Upstream commit 50caa777a3a24d7027748e96265728ce748b41ef ]

Fix the missing clk_disable_unprepare() before return
from emac_clks_phase1_init() in the error handling case.

Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Acked-by: Timur Tabi <timur@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qualcomm/emac/emac.c