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

commit 9eedc321e35b6a87e57149f237ea02c28896ef5d upstream.

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

Fixes: 2b61e2442823 ("interconnect: icc-rpm: Support child NoC device probe")
Cc: stable@vger.kernel.org # 5.17
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-7-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-rpm.c