linux-stable/sound/synth/emux
Austin Kim e621d16ceb ALSA: synth: missing check for possible NULL after the call to kstrdup
commit d159037abb upstream.

If kcalloc() return NULL due to memory starvation, it is possible for
kstrdup() to return NULL in similar case. So add null check after the call
to kstrdup() is made.

[ minor coding-style fix by tiwai ]

Signed-off-by: Austin Kim <austin.kim@lge.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211109003742.GA5423@raspberrypi
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-26 11:40:21 +01:00
..
emux.c ALSA: synth: missing check for possible NULL after the call to kstrdup 2021-11-26 11:40:21 +01:00
emux_effect.c ALSA: seq: Allow the tristate build of OSS emulation 2017-06-09 22:09:45 +02:00
emux_hwdep.c ALSA: emux: Fix potential Spectre v1 vulnerabilities 2019-01-09 17:14:46 +01:00
emux_nrpn.c
emux_oss.c ALSA: seq: Allow the tristate build of OSS emulation 2017-06-09 22:09:45 +02:00
emux_proc.c
emux_seq.c ALSA: emux: Delete two error messages for a failed memory allocation in snd_emux_create_port() 2017-08-10 17:55:13 +02:00
emux_synth.c
emux_voice.h
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
soundfont.c