diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index c7eba361c14d..a51b134038a0 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -440,7 +440,7 @@ i915_gem_object_wait_reservation(struct reservation_object *resv, | |||
440 | timeout = i915_gem_object_wait_fence(shared[i], | 440 | timeout = i915_gem_object_wait_fence(shared[i], |
441 | flags, timeout, | 441 | flags, timeout, |
442 | rps); | 442 | rps); |
443 | if (timeout <= 0) | 443 | if (timeout < 0) |
444 | break; | 444 | break; |
445 | 445 | ||
446 | dma_fence_put(shared[i]); | 446 | dma_fence_put(shared[i]); |
@@ -453,7 +453,7 @@ i915_gem_object_wait_reservation(struct reservation_object *resv, | |||
453 | excl = reservation_object_get_excl_rcu(resv); | 453 | excl = reservation_object_get_excl_rcu(resv); |
454 | } | 454 | } |
455 | 455 | ||
456 | if (excl && timeout > 0) | 456 | if (excl && timeout >= 0) |
457 | timeout = i915_gem_object_wait_fence(excl, flags, timeout, rps); | 457 | timeout = i915_gem_object_wait_fence(excl, flags, timeout, rps); |
458 | 458 | ||
459 | dma_fence_put(excl); | 459 | dma_fence_put(excl); |