drm/i915: Remove user controllable DRM_ERROR for i915_getparam()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 13:00:23 +0000 (14:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 13:44:58 +0000 (14:44 +0100)
commitdda330099afc10160d1ae1f74838f8452169dbbd
tree7f18f0fb855d410cc86fb45db66347ca88660b60
parent0673ad472b9849ad6dbd83d5e3a3a63aba5db740
drm/i915: Remove user controllable DRM_ERROR for i915_getparam()

The GETPARAM ioctl writes to a user supplied address. If that address is
invalid, it is the user's error and not the driver's, so quietly report
EFAULT and don't blame ourselves with a DRM_ERROR.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466773227-7994-11-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c