[PATCH] ALSA: lola: add a check for the return of vmalloc()
Takashi Iwai
tiwai at suse.de
Fri Mar 4 09:51:47 CET 2022
On Fri, 04 Mar 2022 09:38:20 +0100,
xkernel.wang at foxmail.com wrote:
>
> From: Xiaoke Wang <xkernel.wang at foxmail.com>
>
> 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 at foxmail.com>
Thanks, applied.
Takashi
More information about the Alsa-devel
mailing list