dma-buf: handle empty dma_fence_arrays gracefully
authorChristian König <christian.koenig@amd.com>
Fri, 25 Mar 2022 15:38:54 +0000 (16:38 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 29 Mar 2022 07:14:30 +0000 (09:14 +0200)
commitc42ee39c1e78224d3a81bdbe0600abe4581226ed
tree995de856a17d9f0b5fbd4ea5b85aa15f9e78888f
parent21d139d73f776aed1e86f3175a1e9fb8a10930c7
dma-buf: handle empty dma_fence_arrays gracefully

A bug inside the new sync-file merge code created empty dma_fence_array instances.

Warn about that and handle those without crashing.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220329070001.134180-2-christian.koenig@amd.com
drivers/dma-buf/dma-fence-array.c