Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262681
b: refs/heads/master
c: 94094c8
h: refs/heads/master
i:
  262679: 91e6977
v: v3
  • Loading branch information
Takashi Iwai committed Aug 8, 2011
1 parent baa4780 commit 9b9f94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0584ffa548b6e59aceb027112f23a55f0133400e
refs/heads/master: 94094c8aaeded11f8b99734b9ebdaada20b5f24a
3 changes: 3 additions & 0 deletions trunk/sound/core/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ int snd_timer_close(struct snd_timer_instance *timeri)
mutex_unlock(&register_mutex);
} else {
timer = timeri->timer;
if (snd_BUG_ON(!timer))
goto out;
/* wait, until the active callback is finished */
spin_lock_irq(&timer->lock);
while (timeri->flags & SNDRV_TIMER_IFLG_CALLBACK) {
Expand All @@ -353,6 +355,7 @@ int snd_timer_close(struct snd_timer_instance *timeri)
}
mutex_unlock(&register_mutex);
}
out:
if (timeri->private_free)
timeri->private_free(timeri);
kfree(timeri->owner);
Expand Down

0 comments on commit 9b9f94d

Please sign in to comment.