]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-buf: fix shared fence list handling in reservation_object_copy_fences
authorChristian König <christian.koenig@amd.com>
Tue, 6 Aug 2019 11:33:12 +0000 (13:33 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 7 Aug 2019 10:44:00 +0000 (12:44 +0200)
commit96e95496b02dbf1b19a2d4ce238810572e149606
tree79e41d74836d599e35a91083b0ad9d5945b8725e
parent93505ee7d05e836fd18894019e93c3875198fcc5
dma-buf: fix shared fence list handling in reservation_object_copy_fences

Add some helpers to correctly allocate/free reservation_object_lists.

Otherwise we might forget to drop dma_fence references on list destruction.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322031/?series=64786&rev=1
drivers/dma-buf/reservation.c