GEM: Fix arguments to drm_memrange_init so we don't exceed our allocation.

It takes (offset, size), not (offset, end).
main
Eric Anholt 2008-05-09 18:23:51 -07:00
parent c5c59eab80
commit 48a8531aa4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}