android_kernel_samsung_a7y1.../sound
Wenwen Wang 571ccc8f01 ALSA: hda - Fix a memory leak bug
commit cfef67f016e4c00a2f423256fc678a6967a9fc09 upstream.

In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc().
Then, the pin widgets in 'codec' are parsed. However, if the parsing
process fails, 'spec' is not deallocated, leading to a memory leak.

To fix the above issue, free 'spec' before returning the error.

Fixes: 352f7f914ebb ("ALSA: hda - Merge Realtek parser code to generic parser")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 20:47:57 +02:00
..
aoa
arm
atmel
core ALSA: compress: Be more restrictive about when a drain is allowed 2020-04-06 20:39:01 +02:00
drivers ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration 2020-04-06 15:17:05 +02:00
firewire ALSA: firewire: fix a memory leak bug 2020-04-06 20:39:33 +02:00
hda
i2c
isa ALSA: sb8: add a check for request_region 2020-04-06 15:16:58 +02:00
mips
oss
parisc
pci ALSA: hda - Fix a memory leak bug 2020-04-06 20:47:57 +02:00
pcmcia
ppc
sh
soc ASoC: max98090: remove 24-bit format support if RJ is 0 2020-04-06 19:17:45 +02:00
sparc
spi
synth
usb ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1 2020-04-06 20:16:45 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2020-04-06 20:38:13 +02:00
sound_firmware.c