Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8872e62 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: seq: Fix race at timer setup and close"

parents d24396e5 41c78c45
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -142,8 +142,10 @@ static struct snd_seq_queue *queue_new(int owner, int locked)
static void queue_delete(struct snd_seq_queue *q)
{
	/* stop and release the timer */
	mutex_lock(&q->timer_mutex);
	snd_seq_timer_stop(q->timer);
	snd_seq_timer_close(q);
	mutex_unlock(&q->timer_mutex);
	/* wait until access free */
	snd_use_lock_sync(&q->use_lock);
	/* release resources... */