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)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2023 12:14:20 +0000 (13:14 +0100)
commit72151ad0cba8a07df90130ff62c979520d71f23b
treee65dc140ead73c5c64516c245b82e3d9bd1feffc
parent528a4a0bb010489abc3bb298c85c8ffb7ebe7735
ASoC: codecs: wsa-macro: fix uninitialized stack variables with name prefix

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>
sound/soc/codecs/lpass-wsa-macro.c