diff options
author | Thierry Reding <[email protected]> | 2021-04-19 18:41:17 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-04-20 13:47:30 +0100 |
commit | ec1af6c64db94e4f24e53011a77b2bf2220ae000 (patch) | |
tree | bd2ec434df0717514d8fc8c03e07fa478067bb86 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 7f51384f17b3e1039fbb2d3535cc777585dc3175 (diff) |
ASoC: simple-card-utils: Allocate link info structure on heap
struct link_info can grow fairly large and may cause the stack frame
size to be exceeded when allocated on the stack. Some architectures
such as 32-bit ARM, RISC-V or PowerPC have small stack frames where
this causes a compiler warning, so allocate these structures on the
heap instead of the stack.
Fixes: 343e55e71877 ("ASoC: simple-card-utils: Increase maximum number of links to 128")
Reported-by: Kuninori Morimoto <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Acked-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions