media: media-request: fix epoll() by calling poll_wait first
commitf4dd471b5c368c396e8e03a65fec64bced949639
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Feb 2019 11:49:42 +0000 (7 06:49 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:45:33 +0000 (18 14:45 -0500)
tree53cb9ad93ac728b8df0f4a128b1247b4f594aa3d
parentb7990bcfb644c53511cca97dca6e39d1bd70732a
media: media-request: 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 media_request_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/media-request.c