linux/sound/firewire/dice
Takashi Sakamoto d23c2cc448 ALSA: fireworks/bebob/dice/oxfw: allow stream destructor after releasing runtime
Currently stream destructor in each driver has a problem to be called in
a context in which sound card object is released, because the destructors
call amdtp_stream_pcm_abort() and touch PCM runtime data.

The PCM runtime data is destroyed in application's context with
snd_pcm_close(), on the other hand PCM substream data is destroyed after
sound card object is released, in most case after all of ALSA character
devices are released. When PCM runtime is destroyed and PCM substream is
remained, amdtp_stream_pcm_abort() touches PCM runtime data and causes
Null-pointer-dereference.

This commit changes stream destructors and allows each driver to call
it after releasing runtime.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org> # 3.19+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-23 09:11:16 +01:00
..
dice-hwdep.c ALSA: dice: Split hwdep functionality into a file 2014-11-29 20:08:19 +01:00
dice-interface.h
dice-midi.c ALSA: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00
dice-pcm.c ALSA: dice: Add support for capturing PCM samples 2014-12-10 10:45:53 +01:00
dice-proc.c ALSA: dice: Split proc interface into a file 2014-11-29 20:09:47 +01:00
dice-stream.c ALSA: fireworks/bebob/dice/oxfw: allow stream destructor after releasing runtime 2015-02-23 09:11:16 +01:00
dice-transaction.c ALSA: dice: Support for non SYT-Match sampling clock source mode 2014-12-10 10:45:28 +01:00
dice.c ALSA: fireworks/bebob/dice/oxfw: add reference-counting for FireWire unit 2015-02-23 09:10:38 +01:00
dice.h ALSA: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00
Makefile ALSA: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00