1
0
Fork 0
remarkable-linux/drivers/media/v4l2-core
Hans Verkuil 9aecdc961e media: videobuf2-core: don't call memop 'finish' when queueing
[ Upstream commit 90b2da89a0 ]

When a buffer is queued or requeued in vb2_buffer_done, then don't
call the finish memop. In this case the buffer is only returned to vb2,
not to userspace.

Calling 'finish' here will cause an unbalance when the queue is
canceled, since the core will call the same memop again.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:28 +02:00
..
Kconfig [media] v4l: fwnode: Support generic fwnode for parsing standardised properties 2017-06-06 09:25:16 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tuner-core.c media: tuner-core: Remove unused #define PREFIX 2017-06-24 09:37:01 -03:00
v4l2-async.c media: Revert "[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay" 2017-09-05 07:30:34 -04:00
v4l2-clk.c media: Convert to using %pOF instead of full_name 2017-08-20 08:20:20 -04:00
v4l2-common.c
v4l2-compat-ioctl32.c media: v4l2-compat-ioctl32: prevent go past max size 2018-07-03 11:25:02 +02:00
v4l2-ctrls.c media: v4l2-ctrl: Fix flags field on Control events 2017-11-30 08:40:58 +00:00
v4l2-dev.c [media] v4l: Add metadata buffer type and format 2017-04-14 22:37:02 -03:00
v4l2-device.c [media] v4l: Allow calling v4l2_device_register_subdev_nodes() multiple times 2017-03-22 11:21:43 -03:00
v4l2-dv-timings.c
v4l2-event.c [media] v4l2-core: Use kvmalloc() for potentially big allocations 2017-06-20 09:11:48 -03:00
v4l2-fh.c
v4l2-flash-led-class.c media: v4l2-flash-led-class: Create separate sub-devices for indicators 2017-08-26 20:26:35 -04:00
v4l2-fwnode.c media: v4l: fwnode: Use a less clash-prone name for MAX_DATA_LANES macro 2017-08-26 13:52:28 -04:00
v4l2-ioctl.c media: v4l2-ioctl.c: don't copy back the result for -ENOTTY 2018-02-16 20:23:00 +01:00
v4l2-mc.c
v4l2-mem2mem.c [media] media: v4l2-mem2mem: extend m2m APIs for more accurate buffer management 2017-06-20 08:53:39 -03:00
v4l2-subdev.c [media] v4l2-core: Use kvmalloc() for potentially big allocations 2017-06-20 09:11:48 -03:00
v4l2-trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vb2-trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c v4l2: disable filesystem-dax mapping support 2017-12-05 11:26:29 +01:00
videobuf-dvb.c
videobuf-vmalloc.c
videobuf2-core.c media: videobuf2-core: don't call memop 'finish' when queueing 2018-08-03 07:50:28 +02:00
videobuf2-dma-contig.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00
videobuf2-dma-sg.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00
videobuf2-dvb.c
videobuf2-memops.c [media] vb2: convert vb2_vmarea_handler refcount from atomic_t to refcount_t 2017-04-05 15:31:57 -03:00
videobuf2-v4l2.c [media] v4l: Add metadata buffer type and format 2017-04-14 22:37:02 -03:00
videobuf2-vmalloc.c media: vb2: Fix videobuf2 to map correct area 2018-05-25 16:17:57 +02:00