]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54f8ae44a1c75dc8d9632cbeef5cae379af468c8
treeec31e50f6de3b5ebaaf8c17aa9e311dad3dcbb7e
parentb8025e89403ccc08303a2ffe09cec2191a786a57
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