linux/sound/firewire
Takashi Sakamoto ff6805037d ALSA: oxfw: fix memory leak of private data
commit 498fe23aad upstream.

Although private data of sound card instance is usually allocated in the
tail of the instance, drivers in ALSA firewire stack allocate the private
data before allocating the instance. In this case, the private data
should be released explicitly at .private_free callback of the instance.

This commit fixes memory leak following to the above design.

Fixes: 6c29230e2a ('ALSA: oxfw: delayed registration of sound card')
Cc: <stable@vger.kernel.org> # v4.7+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-29 03:06:03 -07:00
..
bebob ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping 2018-09-29 03:06:02 -07:00
dice ALSA: dice: fix error path to destroy initialized stream data 2018-05-01 12:58:14 -07:00
digi00x ALSA: firewire-digi00x: fix memory leak of private data 2018-09-29 03:06:02 -07:00
fireface ALSA: fireface: fix memory leak in ff400_switch_fetching_mode() 2018-09-29 03:06:02 -07:00
fireworks ALSA: fireworks: fix memory leak of response buffer at error path 2018-09-29 03:06:03 -07:00
motu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
oxfw ALSA: oxfw: fix memory leak of private data 2018-09-29 03:06:03 -07:00
tascam ALSA: firewire-tascam: fix memory leak of private data 2018-09-29 03:06:02 -07:00
amdtp-am824.c ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
amdtp-am824.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
amdtp-stream-trace.h ALSA: firewire_lib: add tracepoints for packets without CIP headers 2017-04-11 08:30:43 +02:00
amdtp-stream.c ALSA: dice: fix kernel NULL pointer dereference due to invalid calculation for array index 2018-05-09 09:51:50 +02:00
amdtp-stream.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cmp.c ALSA: firewire-lib: fix kerneldoc errors 2014-11-18 18:10:23 +01:00
cmp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fcp.c ALSA: firewire-lib/bebob/oxfw: improve response evaluation for AV/C commands 2017-04-05 21:37:23 +02:00
fcp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isight.c ALSA: firewire: constify snd_pcm_ops structures 2017-08-19 11:02:17 +02:00
iso-resources.c ALSA: firewire: fix NULL pointer dereference when releasing uninitialized data of iso-resource 2017-08-20 09:40:32 +02:00
iso-resources.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig ALSA: fireface: add support for Fireface 400 2017-04-05 21:31:54 +02:00
lib.c ALSA: firewire-lib/firewire-tascam: localize async midi port 2017-04-14 14:50:26 +02:00
lib.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
packets-buffer.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
packets-buffer.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00