提交 dc6a02aa 编写于 作者: M Mauro Carvalho Chehab 提交者: Mauro Carvalho Chehab

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

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 5f796752
......@@ -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);
} else {
/* read() capture */
buf = (struct tm6000_buffer*)fh->vb_vidq.read_buf;
if (NULL == buf)
return POLLERR;
return videobuf_poll_stream(file, &fh->vb_vidq,
wait);
}
poll_wait(file, &buf->vb.done, wait);
if (buf->vb.state == STATE_DONE ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册