linux/sound/firewire/tascam
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
..
Makefile
amdtp-tascam.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
tascam-hwdep.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
tascam-midi.c ALSA: firewire-tascam: support drain callback for MIDI playback substream 2017-04-14 14:50:43 +02:00
tascam-pcm.c ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
tascam-proc.c sound: Use octal not symbolic permissions 2018-05-28 11:27:20 +02:00
tascam-stream.c ALSA: firewire-tascam: Fix to handle error from initialization of stream data 2017-01-03 11:36:34 +01:00
tascam-transaction.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
tascam.c ALSA: firewire-tascam: fix memory leak of private data 2018-09-13 15:14:39 +02:00
tascam.h ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00