ALSA: dummy: Fix a use-after-free at closing
[pandora-kernel.git] / sound / drivers / dummy.c
index 3662c62..51f1cc2 100644 (file)
@@ -419,6 +419,7 @@ static int dummy_hrtimer_stop(struct snd_pcm_substream *substream)
 
 static inline void dummy_hrtimer_sync(struct dummy_hrtimer_pcm *dpcm)
 {
+       hrtimer_cancel(&dpcm->timer);
        tasklet_kill(&dpcm->tasklet);
 }