]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ef2e6c1b1583f7c9dfef9b2f53a7f97b5937b37
treeaa267940e2b263a6627e1afad6ae14211b8aaabb
parent953478c1ab7ede74f2372b4a5894c80e452c2e4f
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