]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: qcom: rpmh: fix probe child-node error handling
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 6 Mar 2023 07:56:37 +0000 (08:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:58 +0000 (13:33 +0100)
commit58f77e03534cb1381804df9afa23b7a84d6f13ac
treeef54d96b533784875d439ca0c41103692093618c
parent53437aa246d74d82a4897910e93d24050e9b3698
interconnect: qcom: rpmh: fix probe child-node error handling

commit f90d85e279fa0256a1496fb5b6cbe1c7b8803432 upstream.

Make sure to clean up and release resources properly also in case probe
fails when populating child devices.

Fixes: 96c9807d4561 ("interconnect: qcom: icc-rpmh: Support child NoC device probe")
Cc: stable@vger.kernel.org # 6.0
Cc: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230306075651.2449-10-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/qcom/icc-rpmh.c