OSDN Git Service

soc: qcom: gsbi: Fix error handling in gsbi_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 7 Dec 2018 22:57:04 +0000 (01:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:29:13 +0000 (22:29 +0200)
commit5142b34fba0768c88ba9895b1f3b7a9aebdb480f
tree2f248b77c509d8f9c4b7d6b755ea25e29cd64237
parent02c2935cfe9d3a2dfcb07572630e8359ee698ff7
soc: qcom: gsbi: Fix error handling in gsbi_probe()

[ Upstream commit 8cd09a3dd3e176c62da67efcd477a44a8d87185e ]

If of_platform_populate() fails in gsbi_probe(),
gsbi->hclk is left undisabled.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/qcom_gsbi.c