diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-30 12:44:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-30 12:44:43 +0000 |
commit | 69636cdb4f95ee54a6a70800148727761b44c1e5 (patch) | |
tree | 429e32e95035d55ebb0c0b4e2c72f5240f49cca7 /sys/dev | |
parent | f44ff0823bd06d872b69b972c27a17258da0bebd (diff) |
Fix return value of dma_fence_wait(). Seems to fix occasional
synchroniation problems when playing youtube videos in chrome.
ok jsg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/include/linux/dma-fence.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/include/linux/dma-fence.h b/sys/dev/pci/drm/include/linux/dma-fence.h index 159c03be587..5b94d067bb6 100644 --- a/sys/dev/pci/drm/include/linux/dma-fence.h +++ b/sys/dev/pci/drm/include/linux/dma-fence.h @@ -189,7 +189,13 @@ dma_fence_wait_timeout(struct dma_fence *fence, bool intr, long timeout) static inline long dma_fence_wait(struct dma_fence *fence, bool intr) { - return dma_fence_wait_timeout(fence, intr, MAX_SCHEDULE_TIMEOUT); + long ret; + + ret = dma_fence_wait_timeout(fence, intr, MAX_SCHEDULE_TIMEOUT); + if (ret < 0) + return ret; + + return 0; } static inline void |