]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2020 17:36:47 +0000 (10:36 -0700)
commitf69382d7acc162bfa5106d9d60c7489a61cc4697
treeb77658485678206dbb81d79e376172692d4e342c
parent71034387981cbfed4d3ca4463294337a86b94650
net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

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

Fixes: 537813f6160a ("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>
drivers/net/ethernet/qualcomm/emac/emac.c