summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMing Qian <ming.qian@nxp.com>2022-06-15 04:19:20 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 09:10:36 +0100
commitd4de27a9b1eadd33a2e40de87a646d1bf5fef756 (patch)
treea424446b243c8133b20c97f3531f3402ea0fd3ac /tools/perf/scripts/python/export-to-postgresql.py
parent38c771014ce697322babf3ec29a7a686eaf24f64 (diff)
downloadlinux-d4de27a9b1eadd33a2e40de87a646d1bf5fef756.tar.gz
linux-d4de27a9b1eadd33a2e40de87a646d1bf5fef756.zip
media: v4l2-mem2mem: prevent pollerr when last_buffer_dequeued is set
If the last buffer was dequeued from the capture queue, signal userspace. DQBUF(CAPTURE) will return -EPIPE. But if output queue is empty and capture queue is empty, v4l2_m2m_poll_for_data will return EPOLLERR, This is very easy to happen in drain. When last_buffer_dequeued is set, we shouldn't return EPOLLERR, but return EPOLLIN | EPOLLRDNORM. Fixes: 1698a7f151126 ("media: v4l2-mem2mem: simplify poll logic") Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions