OSDN Git Service

soundwire: qcom: add proper error paths in qcom_swrm_startup()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 17 May 2023 16:37:36 +0000 (18:37 +0200)
committerVinod Koul <vkoul@kernel.org>
Sat, 27 May 2023 10:40:40 +0000 (16:10 +0530)
commit99e09b9c0ab43346c52f2787ca4e5c4b1798362e
tree78c963899844e737221ebe0b63b1e873c8704220
parent700581ede41d029403feec935df4616309696fd7
soundwire: qcom: add proper error paths in qcom_swrm_startup()

Reverse actions in qcom_swrm_startup() error paths to avoid leaking
stream memory and keeping runtime PM unbalanced.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230517163736.997553-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c