]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: aloop: Avoid unexpected timer event callback tasklets
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Fri, 22 Nov 2019 17:52:18 +0000 (11:52 -0600)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Nov 2019 18:13:23 +0000 (19:13 +0100)
commite620a7c7b9dbdf42cb6ce310df7d2e22ee89445f
tree5ffcb98a604db9ba58ccf1af25d47edccd738bbb
parentb479c60b770f0fb05f6a02c8f0185ec01c2cde77
ALSA: aloop: Avoid unexpected timer event callback tasklets

loopback_snd_timer_close_cable() function waits until all
scheduled tasklets are completed, but the timer is closed after that
and can generate more event callbacks, scheduling new tasklets,
that will not be synchronized with cable closing.
Move tasklet_kill() call to be executed after snd_timer_close()
call to avoid such case.

Fixes: 92a19a3fbdee ("ALSA: aloop: Support selection of snd_timer instead of jiffies")
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Link: https://lore.kernel.org/r/20191122175218.17187-2-andrew_gabbasov@mentor.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/aloop.c