Skip to content

Commit

Permalink
dma-fence: Report the composite sync_file status
Browse files Browse the repository at this point in the history
Same as for the individual fences, we want to report the actual status
of the fence when queried.

Reported-by: Petri Latvala <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Sumit Semwal <[email protected]>
Cc: Gustavo Padovan <[email protected]>
Cc: Petri Latvala <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
ickle committed Aug 12, 2019
1 parent 4c8b4c3 commit 7891c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma-buf/sync_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static long sync_file_ioctl_fence_info(struct sync_file *sync_file,
* info->num_fences.
*/
if (!info.num_fences) {
info.status = dma_fence_is_signaled(sync_file->fence);
info.status = dma_fence_get_status(sync_file->fence);
goto no_fences;
} else {
info.status = 1;
Expand Down

0 comments on commit 7891c30

Please sign in to comment.