drm/i915: disallow gem ums init ioctl for kms
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Apr 2012 06:22:52 +0000 (08:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:13 +0000 (11:18 +0200)
commit7bb6fb8dd958ae773ac205282e3c0b56c22e01ed
tree3e70a0b93994fd6c03447943dee442b847176b8f
parent1cff8f6b4c668a060c7e3f82d3f1fb5aaa37edc4
drm/i915: disallow gem ums init ioctl for kms

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

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

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c