]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB (7337): ivtv: fix polling bug
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 22 Apr 2008 17:45:48 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:49 +0000 (14:07 -0300)
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>
drivers/media/video/ivtv/ivtv-fileops.c

index 6fb96f19a8661dfe369f7303e6ed4e11301d3ad9..d949a81339d5b7fa363111389c9cce037c660873 100644 (file)
@@ -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;
 }