dma-buf: cleanup dma_fence_unwrap selftest v2
authorChristian König <christian.koenig@amd.com>
Wed, 4 May 2022 10:28:31 +0000 (12:28 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 30 May 2022 12:12:21 +0000 (14:12 +0200)
commit0c5064fa8d5a02dc2dcc6c674a0ad1bbaf79efda
tree720bea9a6ed1da43d5a17c628a2a7348d155346a
parent435c249008cba04ed6a7975e9411f3b934620204
dma-buf: cleanup dma_fence_unwrap selftest v2

The selftests, fix the error handling, remove unused functions and stop
leaking memory in failed tests.

v2: fix the memory leak correctly.

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/20220518135844.3338-2-christian.koenig@amd.com
drivers/dma-buf/st-dma-fence-unwrap.c