]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 09:12:38 +0000 (11:12 +0200)
commit5cc506e9b3e528f2afa7184a3b2e799879758cb7
tree4d2a03b10e039c6c2aef22fa86d08a07ea18b4de
parent2839e0b64e654d135b16886cb244e100de142105
soundwire: qcom: add proper error paths in qcom_swrm_startup()

[ Upstream commit 99e09b9c0ab43346c52f2787ca4e5c4b1798362e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/qcom.c