[PATCH 0/7] drm: Return -ENOENT when objects can't be found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We're rather inconsistent in which error values we return to userspace
on failure. I want to unify the behaviour a bit and consistently return 
ENOENT when mode object lookups fail. We already do that in a few places
but in most places we just return EINVAL.

I made a separate patch for each affected driver just in case there's some
magic meaning to the error values for certain drivers.


Ville Syrjälä (7):
      drm: Consistently return -ENOENT when a mode object can't be found
      drm: Return -ENOENT when a framebuffer can't be found
      drm/gma500: Return -ENOENT when a mode object can't be found
      drm/i915: Return -ENOENT when a mode object can't be found
      drm/radeon: Return -ENOENT when a mode object can't be found
      drm/vmwgfx: Return -ENOENT when a mode object can't be found
      drm/vmwgfx: Return -ENOENT when a framebuffer can't be found

 drivers/gpu/drm/drm_crtc.c                 | 44 +++++++++++++++++-------------
 drivers/gpu/drm/gma500/psb_drv.c           |  4 +--
 drivers/gpu/drm/gma500/psb_intel_display.c |  2 +-
 drivers/gpu/drm/i915/intel_display.c       |  2 +-
 drivers/gpu/drm/i915/intel_sprite.c        |  4 +--
 drivers/gpu/drm/radeon/r100.c              |  2 +-
 drivers/gpu/drm/radeon/r600_cs.c           |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c      |  4 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c        |  2 +-
 9 files changed, 36 insertions(+), 30 deletions(-)
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux