Skip to content

Commit 0335594

Browse files
akagoe01tursulin
authored andcommitted
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: <[email protected]> # v6.17+ Signed-off-by: Akash Goel <[email protected]> Fixes: 506aa8b ("dma-fence: Add safe access helpers and document the rules") Reviewed-by: Tvrtko Ursulin <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2343750 commit 0335594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma-buf/dma-fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ const char __rcu *dma_fence_timeline_name(struct dma_fence *fence)
11411141
"RCU protection is required for safe access to returned string");
11421142

11431143
if (!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))
1144-
return fence->ops->get_driver_name(fence);
1144+
return fence->ops->get_timeline_name(fence);
11451145
else
11461146
return "signaled-timeline";
11471147
}

0 commit comments

Comments
 (0)