projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb8ff3
)
V4L/DVB (7487): videobuf: Wakeup queues after changing the state to ERROR
author
Brandon Philips
<brandon@ifup.org>
Wed, 2 Apr 2008 21:10:57 +0000
(18:10 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:57 +0000
(14:07 -0300)
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>
drivers/media/video/videobuf-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/videobuf-core.c
b/drivers/media/video/videobuf-core.c
index
fe742fd
..
e4a864e
100644
(file)
--- a/
drivers/media/video/videobuf-core.c
+++ b/
drivers/media/video/videobuf-core.c
@@
-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)