]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: warn about dma_fence_array container rules v2
authorChristian König <christian.koenig@amd.com>
Wed, 19 Jan 2022 10:40:21 +0000 (11:40 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Feb 2022 08:20:09 +0000 (09:20 +0100)
commit8c0c6c5784a429ff7a8b3aff8ae0b1c8b0cd7ec4
treef7eeab2f2bfe1114b2695c73fb174bb02ee7af28
parent86adfef285233b1982aac1495732949b8fb46170
dma-buf: warn about dma_fence_array container rules v2

It's not allowed to nest another dma_fence container into a dma_fence_array
or otherwise we can run into recursion.

Warn about that when we create a dma_fence_array.

v2: fix comment style and typo in the warning pointed out by Thomas

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220204100429.2049-3-christian.koenig@amd.com
drivers/dma-buf/dma-fence-array.c