From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: Re: [PATCH] drm: Use ENOENT consistently for the error return for an unmatched handle. Date: Thu, 05 Aug 2010 08:46:31 +1000 Message-ID: <1280961991.3525.3.camel@clockmaker-el6> References: <1280927986-7333-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1280927986-7333-1-git-send-email-chris@chris-wilson.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Wed, 2010-08-04 at 14:19 +0100, Chris Wilson wrote: > 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). Have you verified no userspace relies on this return value? since this technically an ABI change. >>From what I can see probably only libdrm tests care. Dave.