]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:20:46 +0000 (12:20 +0100)
commit86e1ad26cb4b93ac5061d3fdbdc459b4e6561f9d
treef15baa43606f6416187e26bc19c89ed86ef0f10a
parentafeaba7157864e1423c14dcdfbb2d962faf39289
ALSA: jack: Check the return value of kstrdup()

commit c01c1db1dc632edafb0dff32d40daf4f9c1a4e19 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/jack.c