Re: [PATCH] ALSA: pcm: Remove VLA usage

2018-03-13 Thread Takashi Sakamoto
Hi, On Mar 13 2018 20:37, Takashi Iwai wrote: A helper function used by snd_pcm_hw_refine() still keeps using VLA for timestamps of hw constraint rules that are non-fixed size. Let's replace the VLA with a simple kmalloc() array. Reference: https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Tak

[PATCH] ALSA: pcm: Remove VLA usage

2018-03-13 Thread Takashi Iwai
A helper function used by snd_pcm_hw_refine() still keeps using VLA for timestamps of hw constraint rules that are non-fixed size. Let's replace the VLA with a simple kmalloc() array. Reference: https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Takashi Iwai --- sound/core/pcm_native.c | 19