Commit 7a3ee5de authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

drm/i915: Remove user-triggerable WARN from i915_gem_object_create

Since this can be triggered by simply attempting a huge object,
a WARN_ON is not appropriate.
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170330163130.24141-1-tvrtko.ursulin@linux.intel.com
parent 1a5788bf
...@@ -4195,7 +4195,7 @@ i915_gem_object_create(struct drm_i915_private *dev_priv, u64 size) ...@@ -4195,7 +4195,7 @@ i915_gem_object_create(struct drm_i915_private *dev_priv, u64 size)
* catch if we ever need to fix it. In the meantime, if you do spot * catch if we ever need to fix it. In the meantime, if you do spot
* such a local variable, please consider fixing! * such a local variable, please consider fixing!
*/ */
if (WARN_ON(size >> PAGE_SHIFT > INT_MAX)) if (size >> PAGE_SHIFT > INT_MAX)
return ERR_PTR(-E2BIG); return ERR_PTR(-E2BIG);
if (overflows_type(size, obj->base.size)) if (overflows_type(size, obj->base.size))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment