diff options
author | Rob Clark <robdclark@chromium.org> | 2021-11-17 17:04:53 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-11-26 13:24:10 +0000 |
commit | 750dc2f622192c08664a15413bc9746d9cbc4361 (patch) | |
tree | 8b17dd02157323ce69fa27cbe5c30f67c4048f67 /sound/soc/soc-devres.c | |
parent | 4999d703c0e66f9f196b6edc0b8fdeca8846b8b6 (diff) | |
download | linux-750dc2f622192c08664a15413bc9746d9cbc4361.tar.gz linux-750dc2f622192c08664a15413bc9746d9cbc4361.tar.bz2 linux-750dc2f622192c08664a15413bc9746d9cbc4361.zip |
ASoC: rt5682s: Fix crash due to out of scope stack vars
Move the declaration of temporary arrays to somewhere that won't go out
of scope before the devm_clk_hw_register() call, lest we be at the whim
of the compiler for whether those stack variables get overwritten.
Fixes a crash seen with gcc version 11.2.1 20210728 (Red Hat 11.2.1-1)
Fixes: bdd229ab26be ("ASoC: rt5682s: Add driver for ALC5682I-VS codec")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20211118010453.843286-2-robdclark@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-devres.c')
0 files changed, 0 insertions, 0 deletions