Skip to content

Commit

Permalink
V4L/DVB (7487): videobuf: Wakeup queues after changing the state to E…
Browse files Browse the repository at this point in the history
…RROR

The waitqueues must be woken up every time state changes.

Signed-off-by: Brandon Philips <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
philips authored and mchehab committed Apr 24, 2008
1 parent 8eb8ff3 commit b608f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b608f43

Please sign in to comment.