summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index ec5a9872..37a4e503 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -48,7 +48,7 @@ i915_gem_init_ioctl(struct drm_device *dev, void *data,
return -EINVAL;
drm_memrange_init(&dev_priv->mm.gtt_space, args->gtt_start,
- args->gtt_end);
+ args->gtt_end - args->gtt_start);
return 0;
}