]> asedeno.scripts.mit.edu Git - linux.git/commit
media: videobuf: fix epoll() by calling poll_wait first
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Feb 2019 11:49:47 +0000 (06:49 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:48:13 +0000 (14:48 -0500)
commitbb436cbeb918740638278217c241d81a306c1bc3
tree3a1246dc7aeae31aba2f7415ec4caf0ab277d746
parent96ebc0ca6f6d0978b1a016e6daa29817a812ce55
media: videobuf: fix epoll() by calling poll_wait first

The epoll function expects that whenever the poll file op is
called, the poll_wait function is also called. That didn't
always happen in videobuf_poll_stream(). Fix this, otherwise
epoll() would timeout when it shouldn't.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/videobuf-core.c