]> git.baikalelectronics.ru Git - kernel.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)
commit1686707b1125259853fcb9927848357771552170
tree4993d43ca26c4cd6fbd1199b215d94c9ab09a6cb
parentaec5409de55e60c3f3ef9f22ab6897748dca092c
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