Commit b608f432 authored by Brandon Philips's avatar Brandon Philips Committed by Mauro Carvalho Chehab

V4L/DVB (7487): videobuf: Wakeup queues after changing the state to ERROR

The waitqueues must be woken up every time state changes.
Signed-off-by: default avatarBrandon Philips <bphilips@suse.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 8eb8ff38
...@@ -204,6 +204,7 @@ void videobuf_queue_cancel(struct videobuf_queue *q) ...@@ -204,6 +204,7 @@ void videobuf_queue_cancel(struct videobuf_queue *q)
if (q->bufs[i]->state == VIDEOBUF_QUEUED) { if (q->bufs[i]->state == VIDEOBUF_QUEUED) {
list_del(&q->bufs[i]->queue); list_del(&q->bufs[i]->queue);
q->bufs[i]->state = VIDEOBUF_ERROR; q->bufs[i]->state = VIDEOBUF_ERROR;
wake_up_all(&q->bufs[i]->done);
} }
} }
if (q->irqlock) if (q->irqlock)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment