ALSA: lola: add a check for the return of vmalloc()
authorXiaoke Wang <xkernel.wang@foxmail.com>
Fri, 4 Mar 2022 08:38:20 +0000 (16:38 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2022 08:51:37 +0000 (09:51 +0100)
commitd7f15befac809ba365742464e1b0bebf07149c58
tree05f63aa0ba5dcf5795cf38c02593d7fca6016ae4
parent3cffb26fbb5202c6a4bee4b99d6bef5623003fbb
ALSA: lola: add a check for the return of vmalloc()

vmalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check the return
of it to catch the error in time.

Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com>
Link: https://lore.kernel.org/r/tencent_4221FC4089F6DF01C48F192E5784038BA205@qq.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/lola/lola_mixer.c