Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208204
b: refs/heads/master
c: d0a38ce
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Mauro Carvalho Chehab committed Aug 9, 2010
1 parent dc90941 commit 5f0684a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e03b9843dc30ba44dedffdfa4180f0723f04e3ab
refs/heads/master: d0a38ce27e1b11116f02835b076fcb79db987e2c
6 changes: 4 additions & 2 deletions trunk/drivers/media/dvb/siano/smscoreapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,9 +1113,11 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev)
*/

prepare_to_wait(&coredev->buffer_mng_waitq, &wait, TASK_INTERRUPTIBLE);

if (list_empty(&coredev->buffers))
if (list_empty(&coredev->buffers)) {
spin_unlock_irqrestore(&coredev->bufferslock, flags);
schedule();
spin_lock_irqsave(&coredev->bufferslock, flags);
}

finish_wait(&coredev->buffer_mng_waitq, &wait);

Expand Down

0 comments on commit 5f0684a

Please sign in to comment.