summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/sync_file.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-08-12 11:12:03 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2019-08-12 11:37:52 +0200
commit7891c30a3e30cbe5a6195fcdf6b36ab7a92c74ae (patch)
treec0ea9a959d34b980be653e5e64654182e03a8477 /drivers/dma-buf/sync_file.c
parentdrm: sun4i: Add support for enabling DDC I2C bus to sun8i_dw_hdmi glue (diff)
downloadlinux-7891c30a3e30cbe5a6195fcdf6b36ab7a92c74ae.tar.xz
linux-7891c30a3e30cbe5a6195fcdf6b36ab7a92c74ae.zip
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
Diffstat (limited to 'drivers/dma-buf/sync_file.c')
-rw-r--r--drivers/dma-buf/sync_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c
index ee4d1a96d779..25c5c071645b 100644
--- a/drivers/dma-buf/sync_file.c
+++ b/drivers/dma-buf/sync_file.c
@@ -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;