]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4c6faa91360d543484abeb904a0e3c96d0322b8
treec1c7ceaa97dd8d9368cce5cb73e776e31d6d6069
parent5d645e8c79b7926f743c872488ffc3168edd1b5d
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