]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: codecs: wsa-macro: fix uninitialized stack variables with name prefix
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 3 Oct 2023 15:54:22 +0000 (17:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:30 +0000 (16:56 +0000)
commitf13e1ea45699ff6b2f69e183edee5b8deee145ad
treea3fc36b552903f1d53dfaee7551077921feb07c3
parent28436d8092adf7b474297ce5039afff838ec8244
ASoC: codecs: wsa-macro: fix uninitialized stack variables with name prefix

commit 72151ad0cba8a07df90130ff62c979520d71f23b upstream.

Driver compares widget name in wsa_macro_spk_boost_event() widget event
callback, however it does not handle component's name prefix.  This
leads to using uninitialized stack variables as registers and register
values.  Handle gracefully such case.

Fixes: 2c4066e5d428 ("ASoC: codecs: lpass-wsa-macro: add dapm widgets and route")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231003155422.801160-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/lpass-wsa-macro.c