Skip to content
Commit 78977fd5 authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Takashi Iwai
Browse files

ALSA: sound/isa/gus: check the return value of kstrdup()



kstrdup() returns NULL when some internal memory errors happen, it is
better to check the return value of it. Otherwise, we may not to be able
to catch some memory errors in time.

Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Link: https://lore.kernel.org/r/tencent_1E3950293AC22395ACFE99404C985D738309@qq.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 55b71f6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment