diff options
-rw-r--r-- | tests/i915/gem_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c index 605b7f9d..2a861ca8 100644 --- a/tests/i915/gem_create.c +++ b/tests/i915/gem_create.c @@ -149,7 +149,7 @@ static uint64_t get_npages(uint64_t *global, uint64_t npages) max = *global; do { old = max; - try = npages % (max / 2); + try = 1 + npages % (max / 2); max -= try; } while ((max = __sync_val_compare_and_swap(global, old, max)) != old); |