diff options
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
-rw-r--r-- | drivers/gpu/drm/lima/lima_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/lima/lima_gem.c b/drivers/gpu/drm/lima/lima_gem.c index 477c0f766663..b609dc030d6c 100644 --- a/drivers/gpu/drm/lima/lima_gem.c +++ b/drivers/gpu/drm/lima/lima_gem.c | |||
@@ -342,7 +342,7 @@ int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns) | |||
342 | timeout = drm_timeout_abs_to_jiffies(timeout_ns); | 342 | timeout = drm_timeout_abs_to_jiffies(timeout_ns); |
343 | 343 | ||
344 | ret = drm_gem_reservation_object_wait(file, handle, write, timeout); | 344 | ret = drm_gem_reservation_object_wait(file, handle, write, timeout); |
345 | if (ret == 0) | 345 | if (ret == -ETIME) |
346 | ret = timeout ? -ETIMEDOUT : -EBUSY; | 346 | ret = timeout ? -ETIMEDOUT : -EBUSY; |
347 | 347 | ||
348 | return ret; | 348 | return ret; |