Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. diff --git a/drivers/gpu/drm/lima/lima_gem.c b/drivers/gpu/drm/lima/lima_gem.c
  2. index 477c0f766663..b609dc030d6c 100644
  3. --- a/drivers/gpu/drm/lima/lima_gem.c
  4. +++ b/drivers/gpu/drm/lima/lima_gem.c
  5. @@ -342,7 +342,7 @@ int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns)
  6. timeout = drm_timeout_abs_to_jiffies(timeout_ns);
  7.  
  8. ret = drm_gem_reservation_object_wait(file, handle, write, timeout);
  9. - if (ret == 0)
  10. + if (ret == -ETIME)
  11. ret = timeout ? -ETIMEDOUT : -EBUSY;
  12.  
  13. return ret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement