summaryrefslogtreecommitdiff
path: root/linux-core/i915_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/i915_gem.c')
-rw-r--r--linux-core/i915_gem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index 16bb3923..2ac74b4b 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -105,8 +105,10 @@ i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, unsigned alignment)
if (alignment == 0)
alignment = PAGE_SIZE;
- if (alignment & (PAGE_SIZE - 1))
+ if (alignment & (PAGE_SIZE - 1)) {
+ DRM_ERROR("Invalid object alignment requested %u\n", alignment);
return -EINVAL;
+ }
free_space = drm_memrange_search_free(&dev_priv->mm.gtt_space,
obj->size,