summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorAlexandre Courbot <gnurou@gmail.com>2020-12-01 15:44:41 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-04 15:12:46 +0300
commit575c52cc4cae8b35654ea2d934d04e649a95cc6f (patch)
tree7e0b25d7bd272d90c091b4aa1f5ead15cad4705a /include/media
parenta45c39b8295f39930095f5a3693762f3ea454205 (diff)
downloadlinux-575c52cc4cae8b35654ea2d934d04e649a95cc6f.tar.xz
media: videobuf2: always call poll_wait() on queues
do_poll()/do_select() seem to set the _qproc member of poll_table to NULL the first time they are called on a given table, making subsequent calls of poll_wait() on that table no-ops. This is a problem for vb2 which calls poll_wait() on the V4L2 queues' waitqueues only when a queue-related event is requested, which may not necessarily be the case during the first poll. Fix this by making the call to poll_wait() happen first thing and unconditionally in vb2_core_poll(). Signed-off-by: Alexandre Courbot <gnurou@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions