OSDN Git Service

dma-buf: add dma_resv_get_singleton v2
authorChristian König <christian.koenig@amd.com>
Wed, 3 Nov 2021 09:02:08 +0000 (10:02 +0100)
committerChristian König <christian.koenig@amd.com>
Sun, 3 Apr 2022 15:53:28 +0000 (17:53 +0200)
commit92cedee6a6a3e6fcc3ffc0e3866baae5f6f76ac1
treeec31e50f6de3b5ebaaf8c17aa9e311dad3dcbb7e
parentd791aec9ff43df4ea0a6690eabd6c395e982ef6f
dma-buf: add dma_resv_get_singleton v2

Add a function to simplify getting a single fence for all the fences in
the dma_resv object.

v2: fix ref leak in error handling

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-3-christian.koenig@amd.com
drivers/dma-buf/dma-resv.c
include/linux/dma-resv.h