dma-buf: fix dma_fence_default_wait() signaling check
authorChristian König <christian.koenig@amd.com>
Mon, 19 Sep 2022 12:00:33 +0000 (14:00 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Sep 2022 18:45:17 +0000 (20:45 +0200)
commit3cc3dd73c420dc70cd366f91a680035ef47edf4f
tree15613c12c8a5b9565f5a7196c7bbd6246cca8fe8
parented712d30a9d0b8a59d6ed001cc7711d7b9c5ce54
dma-buf: fix dma_fence_default_wait() signaling check

That check must now come after grabing the spinlock, not before.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: b96fb1e724ae ("dma-buf: dma_fence_wait must enable signaling")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220919120618.113332-1-christian.koenig@amd.com
drivers/dma-buf/dma-fence.c