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