]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Sat, 27 Apr 2019 07:33:52 +0000 (09:33 +0200)
commit5735cd4e0c785e200492e32f074536a506d43900
tree4ea641245ec1cf97bb8880b31da4759d1e955e6a
parentb396b5e89be6cd3d5b7c51f05a0a16c800e015fc
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