aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2023-01-26 01:28:44 +0100
committerDanilo Krummrich <dakr@redhat.com>2023-01-26 23:33:11 +0100
commit851a4a77a9f6441bd73625fe6dbc29c814ae681f (patch)
tree08ad646f5c245e7ba7a43e89bee7778881b81918 /drivers/dma-buf
parentdrm/simpledrm: Fix an NULL vs IS_ERR() bug (diff)
downloadwireguard-linux-851a4a77a9f6441bd73625fe6dbc29c814ae681f.tar.xz
wireguard-linux-851a4a77a9f6441bd73625fe6dbc29c814ae681f.zip
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. 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
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r--drivers/dma-buf/dma-fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index 406b4e26f538..0de0482cd36e 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -167,7 +167,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void)
0, 0);
set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
- &dma_fence_stub.flags);
+ &fence->flags);
dma_fence_signal(fence);