Skip to content

Commit 7891c30

Browse files
committed
dma-fence: Report the composite sync_file status
Same as for the individual fences, we want to report the actual status of the fence when queried. Reported-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Gustavo Padovan <gustavo@padovan.org> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190812091203.29871-1-chris@chris-wilson.co.uk
1 parent 4c8b4c3 commit 7891c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/dma-buf/sync_file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static long sync_file_ioctl_fence_info(struct sync_file *sync_file,
419419
* info->num_fences.
420420
*/
421421
if (!info.num_fences) {
422-
info.status = dma_fence_is_signaled(sync_file->fence);
422+
info.status = dma_fence_get_status(sync_file->fence);
423423
goto no_fences;
424424
} else {
425425
info.status = 1;

0 commit comments

Comments
 (0)