Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma-buf: actually set signaling bit for private stub fences

In dma_fence_allocate_private_stub() set the signaling bit of the newly
allocated private stub fence rather than the signaling bit of the
shared dma_fence_stub.

Cc: <stable@vger.kernel.org> # v6.1
Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230126002844.339593-1-dakr@redhat.com

+1 -1
+1 -1
drivers/dma-buf/dma-fence.c
··· 167 167 0, 0); 168 168 169 169 set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, 170 - &dma_fence_stub.flags); 170 + &fence->flags); 171 171 172 172 dma_fence_signal(fence); 173 173