projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: dummy: Fix a use-after-free at closing
[firefly-linux-kernel-4.4.55.git]
/
sound
/
drivers
/
dummy.c
diff --git
a/sound/drivers/dummy.c
b/sound/drivers/dummy.c
index a9f7a75702d20bb0a21e97c60ad9fe1fad31dcee..67628616506e86aa66defa36e580bd1146e7c549 100644
(file)
--- a/
sound/drivers/dummy.c
+++ b/
sound/drivers/dummy.c
@@
-420,6
+420,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);
}