linux_dsm_epyc7002/drivers/media/v4l2-core
Tomasz Stanislawski 67a5d0cebf [media] v4l: vb2-dma-contig: add reference counting for a device from allocator context
This patch adds taking reference to the device for MMAP buffers.
Such buffers, may be exported using DMABUF mechanism. If the driver that
created a queue is unloaded then the queue is released, the device might be
released too.  However, buffers cannot be released if they are referenced by
DMABUF descriptor(s). The device pointer kept in a buffer must be valid for the
whole buffer's lifetime. Therefore MMAP buffers should take a reference to the
device to avoid risk of dangling pointers.

Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-11-25 17:21:20 -02:00
..
Kconfig [media] v4l: vb2-vmalloc: add support for dmabuf importing 2012-11-25 17:18:58 -02:00
Makefile [media] Cleanup media Kconfig files 2012-08-21 07:55:47 -03:00
tuner-core.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
v4l2-common.c [media] v4l2-common: h_bp var is unused at v4l2_detect_gtf() 2012-10-28 07:38:53 -02:00
v4l2-compat-ioctl32.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-ctrls.c [media] v4l: Add control definitions for new H264 encoder features 2012-10-05 22:42:17 -03:00
v4l2-dev.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-device.c [media] v4l2-ctrls: add a filter function to v4l2_ctrl_add_handler 2012-10-01 17:07:07 -03:00
v4l2-event.c [media] v4l, smiapp, smiapp-pll, adp1653: Update contact information 2012-11-21 13:34:50 -02:00
v4l2-fh.c [media] v4l, smiapp, smiapp-pll, adp1653: Update contact information 2012-11-21 13:34:50 -02:00
v4l2-int-device.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
v4l2-ioctl.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-mem2mem.c [media] v4l: vb2: add buffer exporting via dmabuf 2012-11-25 17:21:00 -02:00
v4l2-subdev.c [media] v4l: Don't warn during link validation when encountering a V4L2 devnode 2012-11-22 12:09:49 -02:00
videobuf2-core.c [media] v4l: vb2: add buffer exporting via dmabuf 2012-11-25 17:21:00 -02:00
videobuf2-dma-contig.c [media] v4l: vb2-dma-contig: add reference counting for a device from allocator context 2012-11-25 17:21:20 -02:00
videobuf2-dma-sg.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf2-memops.c [media] v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call 2012-11-25 17:20:25 -02:00
videobuf2-vmalloc.c [media] v4l: vb2-vmalloc: add support for dmabuf importing 2012-11-25 17:18:58 -02:00
videobuf-core.c [media] v4l: vb: remove warnings about MEMORY_DMABUF 2012-11-25 17:11:24 -02:00
videobuf-dma-contig.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf-dma-sg.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00
videobuf-dvb.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf-vmalloc.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00