From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Thu, 30 Apr 2015 14:47:13 +0000 Subject: Re: [patch] drm/i915: checking IS_ERR() instead of NULL Message-Id: <20150430144713.GD16501@mwanda> List-Id: References: <20150430143050.GB22086@mwanda> <20150430144302.GB31838@nuc-i3427.alporthouse.com> In-Reply-To: <20150430144302.GB31838@nuc-i3427.alporthouse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Chris Wilson , Daniel Vetter , Jani Nikula , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org On Thu, Apr 30, 2015 at 03:43:02PM +0100, Chris Wilson wrote: > On Thu, Apr 30, 2015 at 05:30:50PM +0300, Dan Carpenter wrote: > > We switched from calling i915_gem_alloc_context_obj() to calling > > i915_gem_alloc_object() so the error handling needs to be updated to > > check for NULL instead of IS_ERR(). > > I had a patch to change i915_gem_alloc_object() to report the correct > error rather than NULL - which can come in surprisingly handy at > times... That also works, of course. Send it. :) regards, dan carpenter