linux-stable/drivers/media/common/videobuf2
Michael Grzeschik 72a28c9283 media: videobuf2-dma-sg: fix vmap callback
commit 608ca5a60e upstream.

For dmabuf import users to be able to use the vaddr from another
videobuf2-dma-sg source, the exporter needs to set a proper vaddr on
vb2_dma_sg_dmabuf_ops_vmap callback. This patch adds vmap on map if
buf->vaddr was not set.

Cc: stable@kernel.org
Fixes: 7938f42181 ("dma-buf-map: Rename to iosys-map")
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-31 16:18:55 -08:00
..
Kconfig
Makefile media: Makefiles: sort entries where it fits 2022-03-14 09:42:59 +01:00
frame_vector.c media: vb2: frame_vector.c: replace WARN_ONCE with a comment 2023-09-14 23:31:55 +02:00
vb2-trace.c
videobuf2-core.c Merge git://git.linuxtv.org/media_stage into media_tree 2023-02-15 12:40:31 +01:00
videobuf2-dma-contig.c media: videobuf2: Don't assert held reservation lock for dma-buf mmapping 2023-06-21 20:22:20 +03:00
videobuf2-dma-sg.c media: videobuf2-dma-sg: fix vmap callback 2024-01-31 16:18:55 -08:00
videobuf2-dvb.c media: vb2: videobuf -> videobuf2 2022-08-29 15:38:09 +02:00
videobuf2-memops.c media: videobuf2: revert "get_userptr: buffers are always writable" 2022-12-06 07:14:31 +00:00
videobuf2-v4l2.c media: vb2: set owner before calling vb2_read 2023-03-19 22:09:55 +01:00
videobuf2-vmalloc.c media: videobuf2: Don't assert held reservation lock for dma-buf mmapping 2023-06-21 20:22:20 +03:00