]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Use ENOENT consistently for the error return for an unmatched handle.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Aug 2010 13:19:46 +0000 (14:19 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Aug 2010 00:46:55 +0000 (10:46 +1000)
commite972ac4b1c9df16653580a2fc4b923339265d58a
tree999c982fe33a39b5000fa16887bc439ff66d678f
parentbeefcecdb6746f2025319f702c787b560436cbf7
drm: Use ENOENT consistently for the error return for an unmatched handle.

This is consistent with trying to access a filename that not exist
within a directory which is a good analogy here. The main reason for the
change is that it is easy to confuse the error code of EBADF as an
performing an ioctl on an invalid file descriptor (rather than an
unknown object).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nv04_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c
drivers/gpu/drm/radeon/radeon_cs.c
drivers/gpu/drm/radeon/radeon_cursor.c
drivers/gpu/drm/radeon/radeon_gem.c