mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 23:20:32 -04:00
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: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8eb8ff3870
commit
b608f4323a
@@ -204,6 +204,7 @@ void videobuf_queue_cancel(struct videobuf_queue *q)
|
||||
if (q->bufs[i]->state == VIDEOBUF_QUEUED) {
|
||||
list_del(&q->bufs[i]->queue);
|
||||
q->bufs[i]->state = VIDEOBUF_ERROR;
|
||||
wake_up_all(&q->bufs[i]->done);
|
||||
}
|
||||
}
|
||||
if (q->irqlock)
|
||||
|
||||
Reference in New Issue
Block a user