OSDN Git Service

ALSA: jack: Check the return value of kstrdup()
authorXiaoke Wang <xkernel.wang@foxmail.com>
Mon, 13 Dec 2021 07:39:31 +0000 (15:39 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Dec 2021 09:38:27 +0000 (10:38 +0100)
commitc01c1db1dc632edafb0dff32d40daf4f9c1a4e19
treeaa267940e2b263a6627e1afad6ae14211b8aaabb
parent2dee54b289fbc810669a1b2b8a0887fa1c9a14d7
ALSA: jack: Check the return value of kstrdup()

kstrdup() can return NULL, it is better to check the return value of it.

Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/tencent_094816F3522E0DC704056C789352EBBF0606@qq.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/jack.c