diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-22 14:45:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 14:07:49 -0300 |
commit | 0358d7c580370c5eaf081ac42a41c6e347709051 (patch) | |
tree | 481beb1b4f99d7bf74d1b3d7a3b08fc931722d3a /drivers/media/video/ivtv | |
parent | ad5f2e859d76dccb7eb1aa942171b1a32211efc2 (diff) | |
download | op-kernel-dev-0358d7c580370c5eaf081ac42a41c6e347709051.zip op-kernel-dev-0358d7c580370c5eaf081ac42a41c6e347709051.tar.gz |
V4L/DVB (7337): ivtv: fix polling bug
The q_io queue was never taken into account by the poll function. Thanks to
Andy Walls for finding this bug.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index 6fb96f1..d949a81 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c @@ -753,7 +753,7 @@ unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait) IVTV_DEBUG_HI_FILE("Encoder poll\n"); poll_wait(filp, &s->waitq, wait); - if (eof || s->q_full.length) + if (eof || s->q_full.length || s->q_io.length) return POLLIN | POLLRDNORM; return 0; } |