ALSA: pcm: Use deferred fasync helper
[linux-2.6-microblaze.git] / sound / core / pcm.c
index 03fc5fa..2ac7420 100644 (file)
@@ -1007,6 +1007,7 @@ void snd_pcm_detach_substream(struct snd_pcm_substream *substream)
                substream->runtime = NULL;
        }
        mutex_destroy(&runtime->buffer_mutex);
+       snd_fasync_free(runtime->fasync);
        kfree(runtime);
        put_pid(substream->pid);
        substream->pid = NULL;