android_kernel_samsung_a7y1.../sound/usb/line6
Takashi Iwai 88d83c68d3 ALSA: line6: Fix memory leak at line6_init_pcm() error path
commit 1bc8d18c75fef3b478dbdfef722aae09e2a9fde7 upstream.

I forgot to release the allocated object at the early error path in
line6_init_pcm().  For addressing it, slightly shuffle the code so
that the PCM destructor (pcm->private_free) is assigned properly
before all error paths.

Fixes: 3450121997ce ("ALSA: line6: Fix write on zero-sized buffer")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:36:26 +02:00
..
capture.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
capture.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
driver.c ALSA: line6: use dynamic buffers 2020-04-06 16:41:48 +02:00
driver.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midibuf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midibuf.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm.c ALSA: line6: Fix memory leak at line6_init_pcm() error path 2020-04-07 13:36:26 +02:00
pcm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
playback.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
playback.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pod.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
podhd.c ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1 2020-04-06 20:16:45 +02:00
toneport.c ALSA: line6: use dynamic buffers 2020-04-06 16:41:48 +02:00
variax.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30