1
0
Fork 0
remarkable-linux/sound/firewire/digi00x
Takashi Sakamoto 933f20a61e ALSA: firewire-digi00x: fix memory leak of private data
commit a49a83ab05 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: 86c8dd7f4d ('ALSA: firewire-digi00x: 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:02 -07:00
..
Makefile ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packet streaming 2015-10-11 18:26:04 +02:00
amdtp-dot.c ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
digi00x-hwdep.c ALSA: firewire-digi00x: enclose identifiers referred by single function 2017-01-05 16:58:07 +01:00
digi00x-midi.c ALSA: firewire-digi00x: allow user space applications to read/write MIDI messages for all ports 2017-04-05 21:34:11 +02:00
digi00x-pcm.c ALSA: firewire: arrange common PCM info/constraints for AMDTP engine applications 2017-06-08 09:15:44 +02:00
digi00x-proc.c ALSA: firewire-digi00x: add proc node to show clock status 2015-09-30 15:35:31 +02:00
digi00x-stream.c ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packet streaming 2015-10-11 18:26:04 +02:00
digi00x-transaction.c ALSA: firewire-digi00x: remove transaction handler for unknown purpose 2017-04-05 21:34:13 +02:00
digi00x.c ALSA: firewire-digi00x: fix memory leak of private data 2018-09-29 03:06:02 -07:00
digi00x.h ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00