linux_dsm_epyc7002/drivers/media/common/videobuf2
Hans Verkuil 1f7f11e8ca media: videobuf2-v4l2.c: move up STATE_DEQUEUED check
If a buffer is queued to a request, followed by an attempt to queue
the same buffer again, then the second qbuf returns an error since
the buffer is not in the DEQUEUED state anymore.

However, before it gets to that check it executes the code under the
'if (!vb->prepared)' condition. This clears previously set data needed
for request handling, and now querybuf will no longer report that this
buffer is part of a request.

Move the state check to before the 'if' and make sure to only do the
state check when called from QBUF and if V4L2_BUF_FLAG_REQUEST_FD is
set.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-04-22 11:43:00 -04:00
..
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile media: vb2: Makefile: place vb2-trace together with vb2-core 2018-02-26 11:39:04 -05:00
vb2-trace.c media: videobuf2: fix build issues with vb2-trace 2018-02-23 05:13:53 -05:00
videobuf2-core.c media: vb2: add requires_requests bit for stateless codecs 2019-03-25 13:24:47 -04:00
videobuf2-dma-contig.c videobuf2: replace a layering violation with dma_map_resource 2019-02-01 09:56:41 +01:00
videobuf2-dma-sg.c media: common: fix several typos 2019-03-01 09:44:48 -05:00
videobuf2-dvb.c media: drivers/media/common/videobuf2: rename from videobuf 2018-01-23 08:05:02 -05:00
videobuf2-memops.c media: common: fix several typos 2019-03-01 09:44:48 -05:00
videobuf2-v4l2.c media: videobuf2-v4l2.c: move up STATE_DEQUEUED check 2019-04-22 11:43:00 -04:00
videobuf2-vmalloc.c media: videobuf2: Return error after allocation failure 2019-03-19 14:03:55 -04:00