linux/drivers/dma-buf
Tvrtko Ursulin 949291c531 dma-fence: Fix reference leak on fence merge failure path
Release all fence references if the output dma-fence-array could not be
allocated.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: 245a4a7b53 ("dma-buf: generalize dma_fence unwrap & merging v3")
Cc: Christian König <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Friedrich Vock <friedrich.vock@gmx.de>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Cc: <stable@vger.kernel.org> # v6.0+
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241115102153.1980-2-tursulin@igalia.com
2024-11-15 13:08:56 +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: Fix the typo in DMA-BUF statistics doc 2023-07-27 09:43:33 +02:00
dma-buf-sysfs-stats.h dma-buf: fix dma_buf_export init order v2 2022-12-13 08:31:45 +01:00
dma-buf.c dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS 2024-04-15 13:56:32 -03:00
dma-fence-array.c dma-buf: Split out dma fence array create into alloc and arm functions 2024-08-30 11:41:05 -07:00
dma-fence-chain.c dma-buf/fence-chain: Add fence deadline support 2023-03-28 13:38:52 -07:00
dma-fence-unwrap.c dma-fence: Fix reference leak on fence merge failure path 2024-11-15 13:08:56 +01:00
dma-fence.c dma-buf/dma-fence: fix spelling 2024-01-12 14:02:29 +01:00
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: add a warning when drv try to reserve 0 fence slots 2024-05-31 10:12:52 +02:00
Kconfig udmabuf: add CONFIG_MMU dependency 2024-07-12 15:52:10 -07:00
Makefile dma-buf: cleanup dma_fence_unwrap implementation 2022-05-30 14:16:32 +02:00
selftest.c dma-buf: Introduce selftesting framework 2019-08-19 18:01:34 +01:00
selftest.h dma-buf: Introduce selftesting framework 2019-08-19 18:01:34 +01:00
selftests.h dma-buf: add dma_fence_unwrap v2 2022-03-25 14:18:28 +01:00
st-dma-fence-chain.c dma-buf: Fix NULL pointer dereference in sanitycheck() 2024-03-20 10:15:45 +01:00
st-dma-fence-unwrap.c dma-buf: Enable signaling on fence for selftests 2022-09-16 15:53:25 +02:00
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 dma-buf: Enable signaling on fence for selftests 2022-09-16 15:53:25 +02:00
sw_sync.c dma-buf/sw_sync: Add fence deadline support 2023-12-02 01:18:46 +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 dma-buf/sw_sync: Add fence deadline support 2023-12-02 01:18:46 +02:00
sync_file.c dma-buf/sync_file: Add SET_DEADLINE ioctl 2023-12-02 01:17:48 +02:00
sync_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
udmabuf.c udmabuf: pin the pages using memfd_pin_folios() API 2024-07-12 15:52:11 -07:00