]> 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:14:21 +0000 (11:14 +0200)
commit6b448cbc3d9e751ffe92c8989392df62eab16e27
tree0ac696afa10c8a88d7e4bad06ae7310dd320caad
parenta04961316a47b006656f09f800c92cb1c73e7d35
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