Commit 7bb6fb8d authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: disallow gem ums init ioctl for kms

This ioctl used in a kms driver is only useful to create massive

v2: Bail out with -ENODEV as suggested by Chris Wilson.

Reviewed-by: default avatarChris Wilson <>
Signed-Off-by: default avatarDaniel Vetter <>
parent 1cff8f6b
......@@ -140,6 +140,9 @@ i915_gem_init_ioctl(struct drm_device *dev, void *data,
struct drm_i915_gem_init *args = data;
if (drm_core_check_feature(dev, DRIVER_MODESET))
return -ENODEV;
if (args->gtt_start >= args->gtt_end ||
(args->gtt_end | args->gtt_start) & (PAGE_SIZE - 1))
return -EINVAL;
Supports Markdown
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