diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 7f2c94a15ab1..d93468cd3a85 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -1113,9 +1113,11 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev) | |||
1113 | */ | 1113 | */ |
1114 | 1114 | ||
1115 | prepare_to_wait(&coredev->buffer_mng_waitq, &wait, TASK_INTERRUPTIBLE); | 1115 | prepare_to_wait(&coredev->buffer_mng_waitq, &wait, TASK_INTERRUPTIBLE); |
1116 | 1116 | if (list_empty(&coredev->buffers)) { | |
1117 | if (list_empty(&coredev->buffers)) | 1117 | spin_unlock_irqrestore(&coredev->bufferslock, flags); |
1118 | schedule(); | 1118 | schedule(); |
1119 | spin_lock_irqsave(&coredev->bufferslock, flags); | ||
1120 | } | ||
1119 | 1121 | ||
1120 | finish_wait(&coredev->buffer_mng_waitq, &wait); | 1122 | finish_wait(&coredev->buffer_mng_waitq, &wait); |
1121 | 1123 | ||