linux-yocto/drivers/dma-buf
Marek Szyprowski 5ec6148cb8 udmabuf: use sgtable-based scatterlist wrappers
commit afe3828437 upstream.

Use common wrappers operating directly on the struct sg_table objects to
fix incorrect use of scatterlists sync calls. dma_sync_sg_for_*()
functions have to be called with the number of elements originally passed
to dma_map_sg_*() function, not the one returned in sgtable's nents.

Fixes: 1ffe095901 ("udmabuf: fix dma-buf cpu access")
CC: stable@vger.kernel.org
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250507160913.2084079-3-m.szyprowski@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:11:38 +01:00
..
heaps dma-buf: heaps: Fix off-by-one in CMA heap fault handler 2024-09-09 15:37:20 +05:30
dma-buf-sysfs-stats.c
dma-buf-sysfs-stats.h
dma-buf.c dma-buf: Fix __dma_buf_debugfs_list_del argument for !CONFIG_DEBUG_FS 2024-12-27 14:02:10 +01:00
dma-fence-array.c dma-buf: fix dma_fence_array_signaled v4 2024-12-14 20:03:30 +01:00
dma-fence-chain.c
dma-fence-unwrap.c dma-fence: Use kernel's sort for merging fences 2024-12-14 20:03:30 +01:00
dma-fence.c
dma-heap.c dma-buf: heaps: Deduplicate docs and adopt common format 2024-07-23 09:52:23 +02:00
dma-resv.c dma-buf: insert memory barrier before updating num_fences 2025-05-22 14:29:47 +02:00
Kconfig udmabuf: fix vmap_udmabuf error page set 2024-12-05 14:01:38 +01:00
Makefile
selftest.c
selftest.h
selftests.h
st-dma-fence-chain.c
st-dma-fence-unwrap.c
st-dma-fence.c treewide: Fix wrong singular form of jiffies in comments 2024-09-08 20:47:40 +02:00
st-dma-resv.c
sw_sync.c dma-buf/sw_sync: Decrement refcount on error in sw_sync_ioctl_get_deadline() 2025-04-25 10:47:50 +02:00
sync_debug.c dma-buf/sw-sync: don't enable IRQ from sync_print_obj() 2024-05-24 16:30:05 +02:00
sync_debug.h
sync_file.c
sync_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
udmabuf.c udmabuf: use sgtable-based scatterlist wrappers 2025-06-27 11:11:38 +01:00