]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: Remove VLA usage
authorTakashi Iwai <tiwai@suse.de>
Tue, 13 Mar 2018 10:18:57 +0000 (11:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Mar 2018 14:37:56 +0000 (15:37 +0100)
commit5730f9f744cfe20b771adc33f3b476b95d3eebba
tree4993d43ca26c4cd6fbd1199b215d94c9ab09a6cb
parent491f833134ac474434e1c950925c58b2ac13ca72
ALSA: pcm: Remove VLA usage

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
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c