Message ID | 1457565265-15195-73-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/timer.c b/sound/core/timer.c index 44cbdde..cbb127b 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -511,9 +511,13 @@ static int _snd_timer_stop(struct snd_timer_instance * timeri, spin_unlock_irqrestore(&slave_active_lock, flags); return -EBUSY; } + if (timeri->timer) + spin_lock(&timeri->timer->lock); timeri->flags &= ~SNDRV_TIMER_IFLG_RUNNING; list_del_init(&timeri->ack_list); list_del_init(&timeri->active_list); + if (timeri->timer) + spin_unlock(&timeri->timer->lock); spin_unlock_irqrestore(&slave_active_lock, flags); } goto __end;