]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:34:28 +0000 (16:34 +0100)
commita06165c6b3db81d5b872621fcbe206deab121ee1
tree4fd313e989c668e85c1c2300035a70bb11ed7274
parentd3c5640a070900651ddc3b6c45a0377bf7ee058d
ALSA: jack: Check the return value of kstrdup()

BugLink: https://bugs.launchpad.net/bugs/1958557
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/core/jack.c