summaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_native.c
diff options
context:
space:
mode:
authorTakashi Sakamoto2015-02-21 15:54:59 +0100
committerTakashi Iwai2015-02-23 09:11:16 +0100
commitd23c2cc4485d10f0cedfef99dd2961d9652b1b3f (patch)
tree27c558371d511e9f93ef12c4d656fbb409fc087c /sound/core/pcm_native.c
parentALSA: firewire-lib: remove reference counting (diff)
downloadkernel-qcow2-linux-d23c2cc4485d10f0cedfef99dd2961d9652b1b3f.tar.gz
kernel-qcow2-linux-d23c2cc4485d10f0cedfef99dd2961d9652b1b3f.tar.xz
kernel-qcow2-linux-d23c2cc4485d10f0cedfef99dd2961d9652b1b3f.zip
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>
Diffstat (limited to 'sound/core/pcm_native.c')
0 files changed, 0 insertions, 0 deletions