kernel_optimize_test/sound/firewire
Takashi Sakamoto 8d28277c06 ALSA: firewire-tascam: fix memory leak of private data
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: b610386c8a ('ALSA: firewire-tascam: deleyed 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>
2018-09-13 15:14:39 +02:00
..
bebob ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping 2018-09-10 09:07:29 +02:00
dice Merge branch 'for-next' into for-linus 2018-08-12 08:55:10 +02:00
digi00x ALSA: firewire-digi00x: fix memory leak of private data 2018-09-13 15:12:57 +02:00
fireface ALSA: fireface: fix memory leak in ff400_switch_fetching_mode() 2018-09-10 09:08:14 +02:00
fireworks ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
motu ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
oxfw ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
tascam ALSA: firewire-tascam: fix memory leak of private data 2018-09-13 15:14:39 +02:00
amdtp-am824.c
amdtp-am824.h
amdtp-stream-trace.h
amdtp-stream.c ALSA: dice: fix kernel NULL pointer dereference due to invalid calculation for array index 2018-04-29 09:06:39 +02:00
amdtp-stream.h
cmp.c
cmp.h
fcp.c
fcp.h
isight.c ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
iso-resources.c
iso-resources.h
Kconfig
lib.c
lib.h
Makefile
packets-buffer.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
packets-buffer.h