drm/i915: Treat using a purged buffer as a source of EFAULT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jan 2014 11:34:58 +0000 (11:34 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Feb 2014 16:03:32 +0000 (17:03 +0100)
commit8c99e57d3926959dd940e834da6fa707601ba7e5
treec1c7ceaa97dd8d9368cce5cb73e776e31d6d6069
parent45d678173ad1ab4c3e2f8870e40aa3194bf3763d
drm/i915: Treat using a purged buffer as a source of EFAULT

Since a purged buffer is one without any associated pages, attempting to
use it should generate EFAULT rather than EINVAL, as it is not strictly
an invalid parameter.

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