bus: qcom: Add missing clk_disable_unprepare() on error path
Subsystems (2)
PATCH 1/1 bus: qcom: Add missing clk_disable_unprepare() on error path
After calling clk_prepare_enable(), clk_disable_unprepare() need be called when read csindex failed.
Fixes 335a12754808 ("bus: qcom: add EBI2 driver")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/bus/qcom-ebi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/qcom-ebi2.c +1 -1
@@ -355,7 +355,7 @@ static int qcom_ebi2_probe(struct platform_device *pdev) ret =of_property_read_u32 (child,"reg" , &csindex);if (ret) {of_node_put (child); -return ret; + goto err_disable_clk; }if (csindex >5 ) {
Signature · 1 line
2.25.1