Commit dc6a02aa authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Mauro Carvalho Chehab

V4L/DVB (12791): tm6000: fix poll() method

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5f796752
...@@ -1449,9 +1449,8 @@ tm6000_poll(struct file *file, struct poll_table_struct *wait) ...@@ -1449,9 +1449,8 @@ tm6000_poll(struct file *file, struct poll_table_struct *wait)
buf = list_entry(fh->vb_vidq.stream.next,struct tm6000_buffer,vb.stream); buf = list_entry(fh->vb_vidq.stream.next,struct tm6000_buffer,vb.stream);
} else { } else {
/* read() capture */ /* read() capture */
buf = (struct tm6000_buffer*)fh->vb_vidq.read_buf; return videobuf_poll_stream(file, &fh->vb_vidq,
if (NULL == buf) wait);
return POLLERR;
} }
poll_wait(file, &buf->vb.done, wait); poll_wait(file, &buf->vb.done, wait);
if (buf->vb.state == STATE_DONE || if (buf->vb.state == STATE_DONE ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment