Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72176
b: refs/heads/master
c: 7507e8d
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Jaroslav Kysela committed Oct 23, 2007
1 parent 1c7ecb7 commit 681b60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31127f2eb945f092010a457c65260b0e19471cc5
refs/heads/master: 7507e8da2f21476007501f04d8bce2b7d0cb3971
5 changes: 3 additions & 2 deletions trunk/sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,16 @@ static int snd_ctl_open(struct inode *inode, struct file *file)

static void snd_ctl_empty_read_queue(struct snd_ctl_file * ctl)
{
unsigned long flags;
struct snd_kctl_event *cread;

spin_lock(&ctl->read_lock);
spin_lock_irqsave(&ctl->read_lock, flags);
while (!list_empty(&ctl->events)) {
cread = snd_kctl_event(ctl->events.next);
list_del(&cread->list);
kfree(cread);
}
spin_unlock(&ctl->read_lock);
spin_unlock_irqrestore(&ctl->read_lock, flags);
}

static int snd_ctl_release(struct inode *inode, struct file *file)
Expand Down

0 comments on commit 681b60d

Please sign in to comment.