* [PATCH] dma-fence: Use dma_fence_set_error() internally
@ 2026-06-03 15:05 Philipp Stanner
0 siblings, 0 replies; only message in thread
From: Philipp Stanner @ 2026-06-03 15:05 UTC (permalink / raw)
To: Sumit Semwal, Christian König
Cc: linux-media, dri-devel, linux-kernel, Philipp Stanner
The dma_fence implementation sets a fence error in dma_fence_release()
manually.
Make the code a bit more readable by using the appropriate API function
for that.
Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
Only compile-tested.
---
drivers/dma-buf/dma-fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index c7ea1e75d38a..ae5550cda421 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -599,7 +599,7 @@ void dma_fence_release(struct kref *kref)
* so that the callbacks know this signal is due to an error.
*/
dma_fence_lock_irqsave(fence, flags);
- fence->error = -EDEADLK;
+ dma_fence_set_error(fence, -EDEADLK);
dma_fence_signal_locked(fence);
dma_fence_unlock_irqrestore(fence, flags);
}
--
2.54.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 15:05 [PATCH] dma-fence: Use dma_fence_set_error() internally Philipp Stanner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox