diff options
author | Danilo Krummrich <dakr@redhat.com> | 2023-01-26 03:28:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-09 13:28:23 +0300 |
commit | e48a8ad77be33119d3ca74bfb13bad9b8e1840c5 (patch) | |
tree | c5eb7b45960b2c2968c85af8ca8044059728db57 /drivers/dma-buf | |
parent | d8b46cc1cf9b26d2411c63331d77815ce32959a0 (diff) | |
download | linux-e48a8ad77be33119d3ca74bfb13bad9b8e1840c5.tar.xz |
dma-buf: actually set signaling bit for private stub fences
commit d2ceea0eb6e17bb37d8b85cb4c16797c0d683d1c upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r-- | drivers/dma-buf/dma-fence.c | 2 |
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); |