• Takashi Sakamoto's avatar
    ALSA: fireworks/bebob/dice/oxfw: allow stream destructor after releasing runtime · d23c2cc4
    Takashi Sakamoto authored
    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: 's avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Cc: <stable@vger.kernel.org> # 3.19+
    Signed-off-by: 's avatarTakashi Iwai <tiwai@suse.de>
    d23c2cc4
Name
Last commit
Last update
..
Makefile Loading commit data...
fireworks.c Loading commit data...
fireworks.h Loading commit data...
fireworks_command.c Loading commit data...
fireworks_hwdep.c Loading commit data...
fireworks_midi.c Loading commit data...
fireworks_pcm.c Loading commit data...
fireworks_proc.c Loading commit data...
fireworks_stream.c Loading commit data...
fireworks_transaction.c Loading commit data...