]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-ctrls.c: fix epoll() by calling poll_wait first
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Feb 2019 11:49:44 +0000 (06:49 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:46:42 +0000 (14:46 -0500)
commitfb69e6ac0c3045b2446c93b1f60178545b2cb28e
treec4d8ae40711388c0f9cc5a4a73e66a432b55a1a9
parent3e5fbadd2234ba90769b31c1a8a821964140f2a6
media: v4l2-ctrls.c: 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 v4l2_ctrl_poll(). 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/v4l2-ctrls.c