Commit 4999d70
ASoC: rt5682: 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: edbd24e ("ASoC: rt5682: Drop usage of __clk_get_name()")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20211118010453.843286-1-robdclark@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 12dc48f commit 4999d70
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
| 2861 | + | |
| 2862 | + | |
2861 | 2863 | | |
2862 | 2864 | | |
2863 | 2865 | | |
2864 | 2866 | | |
2865 | 2867 | | |
2866 | 2868 | | |
2867 | 2869 | | |
2868 | | - | |
| 2870 | + | |
2869 | 2871 | | |
2870 | 2872 | | |
| 2873 | + | |
2871 | 2874 | | |
2872 | 2875 | | |
2873 | 2876 | | |
2874 | 2877 | | |
2875 | 2878 | | |
2876 | | - | |
2877 | | - | |
2878 | | - | |
| 2879 | + | |
| 2880 | + | |
2879 | 2881 | | |
2880 | 2882 | | |
2881 | 2883 | | |
| |||
0 commit comments