Commit 03355947 authored by Akash Goel's avatar Akash Goel Committed by Tvrtko Ursulin
Browse files

dma-fence: Fix safe access wrapper to call timeline name method



This commit fixes the wrapper function dma_fence_timeline_name(), that
was added for safe access, to actually call the timeline name method of
dma_fence_ops.

Cc: <stable@vger.kernel.org> # v6.17+
Signed-off-by: default avatarAkash Goel <akash.goel@arm.com>
Fixes: 506aa8b0 ("dma-fence: Add safe access helpers and document the rules")
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: default avatarTvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20251021160951.1415603-1-akash.goel@arm.com
parent 23437509
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1141,7 +1141,7 @@ const char __rcu *dma_fence_timeline_name(struct dma_fence *fence)
			 "RCU protection is required for safe access to returned string");

	if (!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))
		return fence->ops->get_driver_name(fence);
		return fence->ops->get_timeline_name(fence);
	else
		return "signaled-timeline";
}