[PATCH] ASoC: simple-card-utils: Allocate link info structure on heap

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Apr 20 00:22:19 CEST 2021


Hi Thierry

Thank you for the patch

> From: Thierry Reding <treding at nvidia.com>
> 
> 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 <kuninori.morimoto.gx at renesas.com>
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Reported-by: kernel test robot <lkp at intel.com>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

Thank you for your help !!

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list